@@ -44,12 +44,6 @@ const isRetina = window.devicePixelRatio > 1 || (window.matchMedia && window.mat
44
44
const tilePixelRatio = isRetina ? 2 : 1
45
45
const retina2x = isRetina ? '@2x' : ''
46
46
47
- const mapTiler : VectorStyle = {
48
- name : 'MapTiler' ,
49
- type : 'vector' ,
50
- url : 'https://api.maptiler.com/maps/1f566542-c726-4cc5-8f2d-2309b90083db/style.json?key=' + mapTilerKey ,
51
- attribution : osmAttribution + ', © <a href="https://www.maptiler.com/copyright/" target="_blank">MapTiler</a>' ,
52
- }
53
47
const mapTilerSatellite : VectorStyle = {
54
48
name : 'MapTiler Satellite' ,
55
49
type : 'vector' ,
@@ -67,6 +61,18 @@ const osmOrg: RasterStyle = {
67
61
attribution : osmAttribution ,
68
62
maxZoom : 19 ,
69
63
}
64
+ const osmCycl : RasterStyle = {
65
+ name : 'Cyclosm' ,
66
+ type : 'raster' ,
67
+ url : [
68
+ 'https://a.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png' ,
69
+ 'https://b.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png' ,
70
+ 'https://c.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png' ,
71
+ ] ,
72
+ attribution : osmAttribution + ', © <a href="https://github.com/cyclosm/cyclosm-cartocss-style/releases" target="_blank">CyclOSM</a>' ,
73
+ maxZoom : 19 ,
74
+ }
75
+
70
76
const omniscale : RasterStyle = {
71
77
name : 'Omniscale' ,
72
78
type : 'raster' ,
@@ -124,18 +130,6 @@ const tfOutdoors: RasterStyle = {
124
130
', <a href="https://www.thunderforest.com/maps/outdoors/" target="_blank">Thunderforest Outdoors</a>' ,
125
131
tilePixelRatio : tilePixelRatio ,
126
132
}
127
- const tfAtlas : RasterStyle = {
128
- name : 'TF Atlas' ,
129
- type : 'raster' ,
130
- url : [
131
- 'https://a.tile.thunderforest.com/atlas/{z}/{x}/{y}' + retina2x + '.png?apikey=' + thunderforestApiKey ,
132
- 'https://b.tile.thunderforest.com/atlas/{z}/{x}/{y}' + retina2x + '.png?apikey=' + thunderforestApiKey ,
133
- 'https://c.tile.thunderforest.com/atlas/{z}/{x}/{y}' + retina2x + '.png?apikey=' + thunderforestApiKey ,
134
- ] ,
135
- attribution :
136
- osmAttribution + ', <a href="https://thunderforest.com/maps/atlas/" target="_blank">Thunderforest Atlas</a>' ,
137
- tilePixelRatio : tilePixelRatio ,
138
- }
139
133
const path = '/raster/styles/kurviger-liberty/{z}/{x}/{y}' + retina2x + '.png?key=' + kurvigerApiKey
140
134
const kurviger : RasterStyle = {
141
135
name : 'Kurviger Liberty' ,
@@ -161,17 +155,6 @@ const mapillion: VectorStyle = {
161
155
osmAttribution +
162
156
', © <a href="https://mapilion.com/attribution" target="_blank">Mapilion</a> <a href="http://www.openmaptiles.org/" target="_blank">© OpenMapTiles</a>' ,
163
157
}
164
- const osmDe : RasterStyle = {
165
- name : 'OpenStreetmap.de' ,
166
- type : 'raster' ,
167
- url : [
168
- 'https://a.tile.openstreetmap.de/{z}/{x}/{y}.png' ,
169
- 'https://b.tile.openstreetmap.de/{z}/{x}/{y}.png' ,
170
- 'https://c.tile.openstreetmap.de/{z}/{x}/{y}.png' ,
171
- ] ,
172
- attribution : osmAttribution ,
173
- maxZoom : 18 ,
174
- }
175
158
const lyrk : RasterStyle = {
176
159
name : 'Lyrk' ,
177
160
type : 'raster' ,
@@ -191,30 +174,20 @@ const wanderreitkarte: RasterStyle = {
191
174
attribution : osmAttribution + ', <a href="https://wanderreitkarte.de" target="_blank">WanderReitKarte</a>' ,
192
175
maxZoom : 18 ,
193
176
}
194
- const sorbian : RasterStyle = {
195
- name : 'Sorbian Language' ,
196
- type : 'raster' ,
197
- url : [ 'https://a.tile.openstreetmap.de/tilesbw/osmhrb/{z}/{x}/{y}.png' ] ,
198
- attribution : osmAttribution + ', <a href="https://www.alberding.eu/">© Alberding GmbH, CC-BY-SA</a>' ,
199
- }
200
177
201
178
const styleOptions : StyleOption [ ] = [
202
179
omniscale ,
203
180
osmOrg ,
181
+ osmCycl ,
204
182
esriSatellite ,
205
183
mapTilerSatellite ,
206
- mapTiler ,
207
184
tfTransport ,
208
185
tfCycle ,
209
186
tfOutdoors ,
210
- tfAtlas ,
211
187
kurviger ,
212
188
mapillion ,
213
- osmDe ,
214
189
lyrk ,
215
- wanderreitkarte ,
216
- // This one is extremely slow with mapbox and openlayers?!
217
- // sorbian
190
+ wanderreitkarte
218
191
]
219
192
220
193
export default class MapOptionsStore extends Store < MapOptionsStoreState > {
0 commit comments