File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ const downloadFirstRunAssets = async () => {
25
25
'/build/tailwind.css' ,
26
26
'/build/main.js' ,
27
27
'/data/huts.json' ,
28
- '/data/places.json' ,
29
28
'/icons/marker.svg' ,
30
- '/icons/location-indicator.svg'
29
+ '/icons/location-indicator.svg' ,
30
+ 'https://search.topos.nz/data/min_excluded_places.json'
31
31
] ) ;
32
32
} ;
33
33
Original file line number Diff line number Diff line change 90
90
class =" opacity-95 hover:bg-background-hover px-2 py-1"
91
91
on:click ={() => selectResult (result )}
92
92
>
93
- {result .name }
93
+ {result .name } ({ result . type })
94
94
</div >
95
95
{/each }
96
96
</div >
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default {
39
39
const response = await fetch ( url ) ;
40
40
const data = await response . json ( ) as any [ ] ;
41
41
for ( const hut of data ) {
42
- hut . place = 'hut'
42
+ hut . type = 'hut'
43
43
}
44
44
return data as Place [ ]
45
45
} ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { getLayerData } from '../layers/data';
2
2
import huts from '../layers/huts'
3
3
import mountains from '../layers/mountains' ;
4
4
5
- const placesUrl = '/ data/places .json'
5
+ const placesUrl = 'https://search.topos.nz/ data/min_excluded_places .json'
6
6
7
7
export interface Place {
8
8
name : string ,
You can’t perform that action at this time.
0 commit comments