@@ -9,7 +9,7 @@ export default function getLayers(
99 layerString ,
1010 namedMapStyle = "default" ,
1111 config = {
12- layerSeparator : "|" ,
12+ layerSeparator : "|"
1313 } ,
1414 layerConfig
1515) {
@@ -47,13 +47,13 @@ export default function getLayers(
4747
4848 return (
4949 < div key = { "layer." + layerString } >
50- { layerArr . map ( ( layerWithOptions ) => {
50+ { layerArr . map ( layerWithOptions => {
5151 const layOp = layerWithOptions . split ( "@" ) ;
5252 if ( ! isNaN ( parseInt ( layOp [ 1 ] , 10 ) ) ) {
5353 const layerWithNamedStyleExtension = layOp [ 0 ] + namedMapStyleExtension ;
5454
5555 const layerOptions = {
56- opacity : parseInt ( layOp [ 1 ] || "100" , 10 ) / 100.0 ,
56+ opacity : parseInt ( layOp [ 1 ] || "100" , 10 ) / 100.0
5757 } ;
5858 return getLayer ( layerWithNamedStyleExtension , layerOptions ) ;
5959 }
@@ -84,13 +84,13 @@ const createLayerFactoryFunction = (key, _conf = defaultLayerConf) => {
8484 let conf = {
8585 namedStyles : defaultLayerConf . namedStyles ,
8686 defaults : defaultLayerConf . defaults ,
87- ..._conf ,
87+ ..._conf
8888 } ;
8989
9090 switch ( ( conf . namedLayers [ key ] || { } ) . type ) {
9191 case "wms" :
9292 case "wmts" :
93- return ( options ) => {
93+ return options => {
9494 let params = { ...conf . defaults . wms , ...conf . namedLayers [ key ] } ;
9595 // console.log('params for ' + key, params);
9696 return (
@@ -104,7 +104,7 @@ const createLayerFactoryFunction = (key, _conf = defaultLayerConf) => {
104104 } ;
105105 case "wms-nt" :
106106 case "wmts-nt" :
107- return ( options ) => {
107+ return options => {
108108 let params = { ...conf . defaults . wms , ...conf . namedLayers [ key ] } ;
109109 // console.log('params for ' + key, params);
110110 return (
@@ -117,7 +117,7 @@ const createLayerFactoryFunction = (key, _conf = defaultLayerConf) => {
117117 ) ;
118118 } ;
119119 case "tiles" :
120- return ( options ) => {
120+ return options => {
121121 let params = { ...conf . defaults . wms , ...conf . namedLayers [ key ] } ;
122122 console . log ( "params for " + key , params ) ;
123123
@@ -131,7 +131,7 @@ const createLayerFactoryFunction = (key, _conf = defaultLayerConf) => {
131131 ) ;
132132 } ;
133133 case "vector" :
134- return ( options ) => {
134+ return options => {
135135 let params = { ...conf . defaults . vector , ...conf . namedLayers [ key ] } ;
136136 // console.log("params for " + key, params);
137137
@@ -152,12 +152,12 @@ export const defaultLayerConf = {
152152 default : { opacity : 0.6 } ,
153153 night : {
154154 opacity : 0.9 ,
155- "css-filter" : "filter:grayscale(0.9)brightness(0.9)invert(1)" ,
155+ "css-filter" : "filter:grayscale(0.9)brightness(0.9)invert(1)"
156156 } ,
157157 blue : {
158158 opacity : 1.0 ,
159- "css-filter" : "filter:sepia(0.5) hue-rotate(155deg) contrast(0.9) opacity(0.9) invert(0)" ,
160- } ,
159+ "css-filter" : "filter:sepia(0.5) hue-rotate(155deg) contrast(0.9) opacity(0.9) invert(0)"
160+ }
161161 } ,
162162 defaults : {
163163 wms : {
@@ -166,83 +166,83 @@ export const defaultLayerConf = {
166166 maxZoom : 22 ,
167167 opacity : 0.6 ,
168168 version : "1.1.1" ,
169- pane : "backgroundLayers" ,
170- } ,
169+ pane : "backgroundLayers"
170+ }
171171 } ,
172172 namedLayers : {
173173 osm : {
174174 type : "wms" ,
175175 url : "https://ows.mundialis.de/services/service?" ,
176176 layers : "OSM-WMS" ,
177- tiled : false ,
177+ tiled : false
178178 } ,
179179 osm2 : {
180180 type : "wms" ,
181181 url : "https://ows.terrestris.de/osm/service?" ,
182182 layers : "OSM-WMS" ,
183- tiled : false ,
183+ tiled : false
184184 } ,
185185 abkf : {
186186 type : "wms" ,
187187 url : "https://wunda-geoportal-cache.cismet.de/geoportal" ,
188- layers : "abkf" ,
188+ layers : "abkf"
189189 } ,
190190 nrs : {
191191 type : "wms" ,
192192 url : "https://wunda-geoportal-cache.cismet.de/geoportal" ,
193193 layers : "R102%3Astadtgrundkarte_hausnr" ,
194- transparent : "true" ,
194+ transparent : "true"
195195 } ,
196196 abkg : {
197197 type : "wms" ,
198198 url : "https://wunda-geoportal-cache.cismet.de/geoportal" ,
199- layers : "abkg" ,
199+ layers : "abkg"
200200 } ,
201201 bplan_abkg : {
202202 type : "wms" ,
203203 url : "https://maps.wuppertal.de/deegree/wms" ,
204- layers : "bplanreihe" ,
204+ layers : "bplanreihe"
205205 } ,
206206 bplan_abkg_cached : {
207207 type : "wms" ,
208208 url : "https://wunda-geoportal-cache.cismet.de/geoportal" ,
209- layers : "bplanreihe" ,
209+ layers : "bplanreihe"
210210 } ,
211211 bplan_abkg_uncached : {
212212 type : "wms" ,
213213 url : "https://maps.wuppertal.de/deegree/wms" ,
214- layers : "bplanreihe" ,
214+ layers : "bplanreihe"
215215 } ,
216216 bplan_ovl : {
217217 type : "wms" ,
218218 url : "https://maps.wuppertal.de/deegree/wms" ,
219- layers : "bplanhintergrund" ,
219+ layers : "bplanhintergrund"
220220 } ,
221221 bplan_ovl_cached : {
222222 type : "wms" ,
223223 url : "https://wunda-geoportal-cache.cismet.de/geoportal" ,
224- layers : "bplanhintergrund" ,
224+ layers : "bplanhintergrund"
225225 } ,
226226 abkIntra : {
227227 type : "wms" ,
228228 url : "http://s10221:7098/alkis/services" ,
229- layers : "alkomf" ,
229+ layers : "alkomf"
230230 } ,
231231 uwBPlan : {
232232 type : "wms" ,
233233 url : "https://maps.wuppertal.de/deegree/wms" ,
234- layers : "bplanreihe,bplanhintergrund" ,
234+ layers : "bplanreihe,bplanhintergrund"
235235 } ,
236236 uwBPlanCached : {
237237 type : "wms" ,
238238 url : "https://wunda-geoportal-cache.cismet.de/geoportal" ,
239- layers : "bplanreihe,bplanhintergrund" ,
239+ layers : "bplanreihe,bplanhintergrund"
240240 } ,
241241 webatlas : {
242242 type : "wms" ,
243243 url : "https://sg.geodatenzentrum.de/wms_webatlasde__60d825c3-a2c2-2133-79c0-48721caab5c3?" ,
244244 layers : "webatlasde" ,
245- tiled : "false" ,
245+ tiled : "false"
246246 } ,
247247 rvrSchriftNT : {
248248 type : "wmts-nt" ,
@@ -251,131 +251,132 @@ export const defaultLayerConf = {
251251 version : "1.3.0" ,
252252 tiled : false ,
253253 transparent : true ,
254- buffer : 50 ,
254+ buffer : 50
255255 } ,
256256 rvrSchrift : {
257257 type : "wmts" ,
258258 url : "https://geodaten.metropoleruhr.de/dop/dop_overlay?language=ger" ,
259259 layers : "dop_overlay" ,
260260 version : "1.3.0" ,
261261 tiled : false ,
262- transparent : true ,
262+ transparent : true
263263 } ,
264264 rvrSchrift2 : {
265265 type : "wms" ,
266266 url : "https://geodaten.metropoleruhr.de/spw2/service" ,
267267 layers : "spw2_schrift" ,
268268 version : "1.3.0" ,
269269 tiled : false ,
270- transparent : true ,
270+ transparent : true
271271 } ,
272272 rvrGrundriss : {
273273 type : "wmts" ,
274274 url : "https://geodaten.metropoleruhr.de/spw2/service" ,
275275 layers : "spw2_light_grundriss" ,
276276 version : "1.3.0" ,
277277 transparent : true ,
278- tiled : false ,
278+ tiled : false
279279 } ,
280280 ruhrWMS : {
281281 type : "wms" ,
282282 url : "https://geodaten.metrotadtpoleruhr.de/spw2/service" ,
283283 layers : "spw2_light" ,
284284 tiled : "false" ,
285- version : "1.3.0" ,
285+ version : "1.3.0"
286286 } ,
287287 rvrGrau : {
288288 type : "wms" ,
289289 url : "https://geodaten.metropoleruhr.de/spw2/service" ,
290290 layers : "spw2_graublau" ,
291291 tiled : "false" ,
292- version : "1.3.0" ,
292+ version : "1.3.0"
293293 } ,
294294 empty : {
295295 type : "wms" ,
296296 url : "-" ,
297297 layers : "-" ,
298298 tiled : "false" ,
299- version : "1.3.0" ,
299+ version : "1.3.0"
300300 } ,
301301 "wupp-plan-live" : {
302302 type : "wms" ,
303303 url : "https://geodaten.metropoleruhr.de/spw2/service" ,
304304 layers : "spw2_light" ,
305305 tiled : "false" ,
306- version : "1.3.0" ,
306+ version : "1.3.0"
307307 } ,
308308
309309 orthoIntra : {
310310 type : "wms" ,
311311 url : "http://s10221:7098/orthofotos/services" ,
312- layers : "WO2018" ,
312+ layers : "WO2018"
313313 } ,
314314 trueOrthoIntra : {
315315 type : "wms" ,
316316 url : "http://s10221:7098/orthofotos/services" ,
317- layers : "WTO2018" ,
317+ layers : "WTO2018"
318318 } ,
319319 trueOrtho2018 : {
320320 type : "wms" ,
321321 url : "https://maps.wuppertal.de/deegree/wms" ,
322- layers : "R102:trueortho201810" ,
322+ layers : "R102:trueortho201810"
323323 } ,
324324 trueOrtho2020 : {
325325 type : "wms" ,
326326 url : "https://maps.wuppertal.de/deegree/wms" ,
327327 layers : "R102:trueortho202010" ,
328+ transparent : true
328329 } ,
329330 hillshade : {
330331 type : "wms" ,
331332 url : "https://maps.wuppertal.de/deegree/wms" ,
332- layers : "hillshade" ,
333+ layers : "hillshade"
333334 } ,
334335 trueOrtho2018Cached : {
335336 type : "wms" ,
336337 url : "https://wunda-geoportal-cache.cismet.de/geoportal" ,
337- layers : "R102:trueortho201810" ,
338+ layers : "R102:trueortho201810"
338339 } ,
339340 trueOrtho2020Cached : {
340341 type : "wms" ,
341342 url : "https://wunda-geoportal-cache.cismet.de/geoportal" ,
342- layers : "R102:trueortho202010" ,
343+ layers : "R102:trueortho202010"
343344 } ,
344345 hillshadeCached : {
345346 type : "wms" ,
346347 url : "https://wunda-geoportal-cache.cismet.de/geoportal" ,
347- layers : "hillshade" ,
348+ layers : "hillshade"
348349 } ,
349350 ESRILayer : {
350351 type : "tiles" ,
351352 url :
352353 "http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}" ,
353354 maxZoom : 22 ,
354- maxNativeZoom : 18 ,
355+ maxNativeZoom : 18
355356 } ,
356357 CartoLayer : {
357358 type : "tiles" ,
358359 url : "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" ,
359360 attribution :
360361 "© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://carto.com/attributions">CARTO</a>" ,
361362 maxNativeZoom : 19 ,
362- maxZoom : 22 ,
363+ maxZoom : 22
363364 } ,
364365 LocalOMT_Klokantech_basic : {
365366 type : "vector" ,
366- style : "http://localhost:888/styles/klokantech-basic/style.json" ,
367+ style : "http://localhost:888/styles/klokantech-basic/style.json"
367368 } ,
368369 LocalOMT_OSM_bright : {
369370 type : "vector" ,
370- style : "http://localhost:888/styles/osm-bright/style.json" ,
371+ style : "http://localhost:888/styles/osm-bright/style.json"
371372 } ,
372373 OMT_Klokantech_basic : {
373374 type : "vector" ,
374- style : "https://omt.map-hosting.de/styles/klokantech-basic/style.json" ,
375+ style : "https://omt.map-hosting.de/styles/klokantech-basic/style.json"
375376 } ,
376377 OMT_OSM_bright : {
377378 type : "vector" ,
378- style : "https://omt.map-hosting.de/styles/osm-bright/style.json" ,
379- } ,
380- } ,
379+ style : "https://omt.map-hosting.de/styles/osm-bright/style.json"
380+ }
381+ }
381382} ;
0 commit comments