Skip to content

Commit f31a02a

Browse files
committed
local tiles and geocoder converter
1 parent 6c4f7a2 commit f31a02a

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

src/api/Api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class ApiImpl implements Api {
9494
hits: [],
9595
took: 0,
9696
}
97-
const url = this.getGeocodingURLWithKey('geocode')
97+
const url = this.getGeocodingURLWithKey('photon')
9898
url.searchParams.append('q', query)
9999
url.searchParams.append('provider', provider)
100100
const langAndCountry = getTranslation().getLang().split('_')

src/stores/MapOptionsStore.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ const mapillion: VectorStyle = {
154154
osmAttribution +
155155
', &copy; <a href="https://mapilion.com/attribution" target="_blank">Mapilion</a> <a href="http://www.openmaptiles.org/" target="_blank">&copy; OpenMapTiles</a>',
156156
}
157+
const planetiler: VectorStyle = {
158+
name: 'Planetiler',
159+
type: 'vector',
160+
url: 'http://localhost:7070/styles/basic-preview/style.json',
161+
attribution: osmAttribution,
162+
}
157163
const wanderreitkarte: RasterStyle = {
158164
name: 'WanderReitKarte',
159165
type: 'raster',
@@ -168,17 +174,8 @@ const wanderreitkarte: RasterStyle = {
168174
}
169175

170176
const styleOptions: StyleOption[] = [
171-
omniscale,
172-
tracestrack,
177+
planetiler,
173178
osmOrg,
174-
osmCycl,
175-
esriSatellite,
176-
mapTilerSatellite,
177-
tfTransport,
178-
tfCycle,
179-
tfOutdoors,
180-
mapillion,
181-
wanderreitkarte,
182179
]
183180

184181
export default class MapOptionsStore extends Store<MapOptionsStoreState> {

0 commit comments

Comments
 (0)