diff options
-rw-r--r-- | main.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3335,6 +3335,12 @@ const [vectorLayers, featureOverlayLayer] = (function() { }); }; const onClickFunction = function(layerList, event) { + featureOverlayLayer.setVisible(false); + featureOverlayLayer.changed(); + const popover = Popover.getInstance(popup); + if (popover !== null) { + popover.dispose(); + } const searchParams = new URLSearchParams(location.hash.substring(1)); let layersParams = searchParams.get('layers') || ''; layersParams = layersParams.match(/^\s*$/) ? [] : layersParams.split(' '); |