Skip to content

Commit 32eba69

Browse files
Use excluded places
1 parent 3f35153 commit 32eba69

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

public/serviceWorker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ const downloadFirstRunAssets = async () => {
2525
'/build/tailwind.css',
2626
'/build/main.js',
2727
'/data/huts.json',
28-
'/data/places.json',
2928
'/icons/marker.svg',
30-
'/icons/location-indicator.svg'
29+
'/icons/location-indicator.svg',
30+
'https://search.topos.nz/data/min_excluded_places.json'
3131
]);
3232
};
3333

src/components/MapSearch.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
class="opacity-95 hover:bg-background-hover px-2 py-1"
9191
on:click={() => selectResult(result)}
9292
>
93-
{result.name}
93+
{result.name} ({result.type})
9494
</div>
9595
{/each}
9696
</div>

src/layers/huts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939
const response = await fetch(url);
4040
const data = await response.json() as any[];
4141
for (const hut of data) {
42-
hut.place = 'hut'
42+
hut.type = 'hut'
4343
}
4444
return data as Place[]
4545
},

src/search/places.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getLayerData } from '../layers/data';
22
import huts from '../layers/huts'
33
import mountains from '../layers/mountains';
44

5-
const placesUrl = '/data/places.json'
5+
const placesUrl = 'https://search.topos.nz/data/min_excluded_places.json'
66

77
export interface Place {
88
name: string,

0 commit comments

Comments
 (0)