Skip to content

Commit 98e010b

Browse files
committed
Fix: Query checkbox now updates maps in-place for all service types
Previously, toggling the Query checkbox for ESRI MapServer, ESRI ImageServer, and WMTS services would remove the active map viewer and revert to the thumbnail preview, requiring users to manually re-check the layer checkbox to regenerate the map. This inconsistent behavior differed from WMS, which already updated query support dynamically. Changes: - Created updateESRIImageServerQueryInViewer() to add/remove query inputs and links without rebuilding the viewer - Created updateESRIMapServerQueryInViewer() with the same pattern - Created updateWMTSQueryInViewer() to handle WMTS-specific query updates (tile units, ResourceURL templates, dimension handling) - Updated query checkbox event listeners for all three service types to call update functions instead of removeViewerForLayer() + createViewerForLayer() - Fixed undefined variable bug in ESRI MapServer query checkbox handler (queryEnabled was not defined) All service types (WMS, WMTS, ESRI MapServer, ESRI ImageServer) now have consistent Query checkbox behavior: toggling adds/removes the query <map-link> and coordinate inputs (i, j) in-place without disrupting the active map view.
1 parent 2feda5e commit 98e010b

2 files changed

Lines changed: 1447 additions & 22 deletions

File tree

src/capabilities.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ Canada Base Map WMTS, https://maps-cartes.services.geo.ca/server2_serveur2/rest/
1919
USGS Imagery Topo, https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/WMTS?SERVICE=WMTS&REQUEST=GetCapabilities
2020
USGS Hydrography, https://basemap.nationalmap.gov/arcgis/rest/services/USGSHydroCached/MapServer/WMTS?SERVICE=WMTS&REQUEST=GetCapabilities
2121
OpenStreetMap France, https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetCapabilities
22-
NASA GIBS MODIS, https://gibs.earthdata.nasa.gov/wmts/epsg3857/best/wmts.cgi?SERVICE=WMTS&REQUEST=GetCapabilities
22+
NASA GIBS MODIS, https://gibs.earthdata.nasa.gov/wmts/epsg3857/best/wmts.cgi?SERVICE=WMTS&REQUEST=GetCapabilities
23+
ESRI World Imagery (Tiled MapServer), https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer?f=pjson
24+
ESRI World Topo (Tiled MapServer), https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer?f=pjson
25+
Federal Marine Bioregions, https://egisp.dfo-mpo.gc.ca/arcgis/rest/services/open_data_donnees_ouvertes/federal_marine_bioregions_bioregions_marines_federales/MapServer?f=pjson

0 commit comments

Comments
 (0)