You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Draw plugin in combination with the Layer Switch control it would be handy to have the possibility to add the layer of drawn features as a layer or separated layers (one for each element? maybe too much).
In this way it would be possible to hide or show the feature, for instance when interacting with objects on the map eg:
need to perform a click for a popup on a layer below a drawn feature
The text was updated successfully, but these errors were encountered:
The draw-plugin creates a lot of layers which we need to toggle.
It creates layers for every geometry type, active or inactive, ...
In the developer tools we can check it like this:
// Get all draw layers_maplibreWidget._map.getLayersOrder().filter(l=>l.startsWith("gl-draw"))// Get all draw polygon layers_maplibreWidget._map.getLayersOrder().filter(l=>l.startsWith("gl-draw-polygon"))_maplibreWidget._map.setLayoutProperty("gl-draw-polygon-fill-inactive.hot","visibility","none")_maplibreWidget._map.setLayoutProperty("gl-draw-polygon-stroke-inactive.hot","visibility","none")
Therefore, I need to add layer groups that can be toggled.
When using the Draw plugin in combination with the Layer Switch control it would be handy to have the possibility to add the layer of drawn features as a layer or separated layers (one for each element? maybe too much).
In this way it would be possible to hide or show the feature, for instance when interacting with objects on the map eg:
The text was updated successfully, but these errors were encountered: