Commit 98e010b
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments