Skip to content

Commit 6c4f7a2

Browse files
committed
added tracestrack
1 parent 1b55bf8 commit 6c4f7a2

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const config = {
1515
omniscale: 'missing_api_key',
1616
thunderforest: 'missing_api_key',
1717
kurviger: 'missing_api_key',
18+
tracestrack: 'missing_api_key',
1819
},
1920
// if true there will be an option to enable the GraphHopper routing graph and the urban density visualization in the layers menu
2021
routingGraphLayerAllowed: false,

src/custom.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ declare module 'config' {
1818
maptiler: string
1919
thunderforest: string
2020
kurviger: string
21+
tracestrack: string
2122
}
2223
const request: {
2324
details: string[]

src/stores/MapOptionsStore.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const osApiKey = config.keys.omniscale
1313
const mapTilerKey = config.keys.maptiler
1414
const thunderforestApiKey = config.keys.thunderforest
1515
const kurvigerApiKey = config.keys.kurviger
16+
const tracestrackApiKey = config.keys.tracestrack
1617

1718
const osmAttribution =
1819
'&copy; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors'
@@ -135,21 +136,14 @@ const tfOutdoors: RasterStyle = {
135136
', <a href="https://www.thunderforest.com/maps/outdoors/" target="_blank">Thunderforest Outdoors</a>',
136137
tilePixelRatio: tilePixelRatio,
137138
}
138-
const path = '/raster/styles/kurviger-liberty/{z}/{x}/{y}' + retina2x + '.png?key=' + kurvigerApiKey
139-
const kurviger: RasterStyle = {
140-
name: 'Kurviger Liberty',
139+
const tracestrack: RasterStyle = {
140+
name: 'Tracestrack',
141141
type: 'raster',
142142
url: [
143-
'https://a-tiles.mapilion.com' + path,
144-
'https://b-tiles.mapilion.com' + path,
145-
'https://c-tiles.mapilion.com' + path,
146-
'https://d-tiles.mapilion.com' + path,
147-
'https://e-tiles.mapilion.com' + path,
143+
'https://tile.tracestrack.com/auto-en/{z}/{x}/{y}.webp?key=' + tracestrackApiKey
148144
],
149-
attribution:
150-
osmAttribution +
151-
',&copy; <a href="https://kurviger.de/" target="_blank">Kurviger</a> &copy; <a href="https://mapilion.com/attribution" target="_blank">Mapilion</a> <a href="http://www.openmaptiles.org/" target="_blank">&copy; OpenMapTiles</a>',
152-
maxZoom: 22,
145+
attribution: osmAttribution + ',&copy; <a href="https://tracestrack.com/" target="_blank">Tracestrack</a>',
146+
maxZoom: 19,
153147
tilePixelRatio: tilePixelRatio,
154148
}
155149
const mapillion: VectorStyle = {
@@ -175,14 +169,14 @@ const wanderreitkarte: RasterStyle = {
175169

176170
const styleOptions: StyleOption[] = [
177171
omniscale,
172+
tracestrack,
178173
osmOrg,
179174
osmCycl,
180175
esriSatellite,
181176
mapTilerSatellite,
182177
tfTransport,
183178
tfCycle,
184179
tfOutdoors,
185-
kurviger,
186180
mapillion,
187181
wanderreitkarte,
188182
]

0 commit comments

Comments
 (0)