@@ -310,7 +310,7 @@ const Map = (props: MapProps) => {
310310 precision = { layerConf . data_precision }
311311 />
312312 </ CustomControlMap >
313- { ! isMobile && (
313+ { ! isMobile && currentMap . op !== 'screenshot' && (
314314 < MousePositionComponent
315315 position = { 'bottomright' }
316316 customComponent = {
@@ -333,39 +333,35 @@ const Map = (props: MapProps) => {
333333 </ CustomControlMap >
334334 { /*<BaseLayerControl/>*/ }
335335
336- < LayersControl position = "topright" >
337- < LayersControl . BaseLayer checked name = "OpenStreetMap" >
338- < TileLayer
339- url = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
340- attribution = '© <a target="_blank" rel="noopener" href="http://osm.org/copyright">OpenStreetMap</a> contributors'
341- />
342- </ LayersControl . BaseLayer >
343- < LayersControl . BaseLayer name = "Sentinel 2" >
344- < TileLayer
345- url = "https://tiles.maps.eox.at/wmts?layer=s2cloudless-2021_3857& style = default & tilematrixset = GoogleMapsCompatible & Service = WMTS & Request = GetTile & Version = 1.0 .0 & Format = image % 2 Fjpeg & TileMatrix = { z } & TileCol = { x } & TileRow = { y } "
346- attribution = '© <a target="_blank" rel="noopener" href="https://tiles.maps.eox.at/">Sentinel-2 cloudless</a> by EOX'
347- />
348- </ LayersControl . BaseLayer >
349- < LayersControl . BaseLayer name = "OpenTopoMap" >
350- < TileLayer
351- url = "https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png"
352- attribution = 'map data: © <a href="https://openstreetmap.org/copyright">OpenStreetMap</a> contributors, <a href="http://viewfinderpanoramas.org">SRTM</a> | map style: © <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'
353- />
354- </ LayersControl . BaseLayer >
355- </ LayersControl >
356- < StationsLayer
357- data = { data }
358- variable = { currentMap . climatological_variable }
359- url = { currentMap . observation_stations_vector_tile_layer_url }
360- zIndex = { 550 }
361- > </ StationsLayer >
336+ { currentMap . op !== 'screenshot' ? (
337+ < LayersControl position = "topright" >
338+ < LayersControl . BaseLayer checked name = "OpenStreetMap" >
339+ < TileLayer
340+ url = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
341+ attribution = '© <a target="_blank" rel="noopener" href="http://osm.org/copyright">OpenStreetMap</a> contributors'
342+ />
343+ </ LayersControl . BaseLayer >
344+ < LayersControl . BaseLayer name = "Sentinel 2" >
345+ < TileLayer
346+ url = "https://tiles.maps.eox.at/wmts?layer=s2cloudless-2021_3857& style = default & tilematrixset = GoogleMapsCompatible & Service = WMTS & Request = GetTile & Version = 1.0 .0 & Format = image % 2 Fjpeg & TileMatrix = { z } & TileCol = { x } & TileRow = { y } "
347+ attribution = '© <a target="_blank" rel="noopener" href="https://tiles.maps.eox.at/">Sentinel-2 cloudless</a> by EOX'
348+ />
349+ </ LayersControl . BaseLayer >
350+ < LayersControl . BaseLayer name = "OpenTopoMap" >
351+ < TileLayer
352+ url = "https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png"
353+ attribution = 'map data: © <a href="https://openstreetmap.org/copyright">OpenStreetMap</a> contributors, <a href="http://viewfinderpanoramas.org">SRTM</a> | map style: © <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'
354+ />
355+ </ LayersControl . BaseLayer >
356+ </ LayersControl >
357+ ) : (
358+ < > </ >
359+ ) }
360+ < StationsLayer data = { data } zIndex = { 550 } > </ StationsLayer >
362361 < DynamicStationsLayer
363362 data = { data }
364363 variable = { currentMap . climatological_variable }
365- url = { currentMap . observation_stations_vector_tile_layer_url ?. replace (
366- 'http://localhost:5001' ,
367- 'https://arpav.geobeyond.dev' ,
368- ) }
364+ url = { layerConf . observation_stations_vector_tile_layer_url }
369365 zIndex = { 575 }
370366 > </ DynamicStationsLayer >
371367 < VectorWrapperLayer
0 commit comments