Event for layer list changes
TerminéeI wondered if it is in the pipeline to make an event for changes to the layer list so it is possible to do an event listener on this and then be able to create and alert when the layer list changes with the layer presets as the sender
The issue now is, that if you are zoomed in on your map but then choose a layer preset which does now have features in the area you might be unsure that the change in layer preset worked. Thus, it could be very useful to have an event and then be able to set an alert for when the layer preset has loaded.
Has anyone tried to make anything similar?
-
Commentaire officiel
Implemented with the 5.38 release (GA is October 15th). If you want to see a live demo to it, sign up for the Road Ahead webinar here. (October 9, 2025 | 10:00AM - 10:45AM PDT)
- layers.definition-expression-changed [332436]
- layer-list.hovered and hover ended [332438]
- layer-list.clicked [332440]
- layer-list.added and removed [332442]
Including 2 new layer list commands: expand and collapse!
-
Another use case for this could be to zoom to data when a new layer has been added (e.g. shapefile or from portal
0 -
VertiGIS Studio Support : are events for layer list changes on the road map? It would be usefull to be able to react to users clicking layers on and off. For example: I would like to disable/enable certain buttons in the toolbar based on the visibility of layers…
1 -
Another use case: I'd like to run a workflow when a certain layer is switched on.
In Mobile, there is already support for the layers.visibility-changed event. I hope this can be implemented for Web as well
0 -
Another use case is to have an alert/notification when switching layers on/off to let our users know that the layer is loading o give the user an indication of having done something even though the layer takes a lot of time to load
2 -
I will just underline that in other to have this work as intended for my different use cases there must be a parameter which makes it possible to only trigger the event if a certain component is behind (triggers) the activity.
Etc. that one thing can be set to happen if the changes are done through the layer list, another if through portal.choose-layers, another if added as a file, another if the change is done through Shared Storage or through Layer Presets.1 -
Any news on this?
We have customers pushing for this so the users can get a loading message when turning on layers in the layer list
1 -
Just adding another voice that this is a deeply needed feature for us. This is the last link for me to deploy a solution for basemap transparency as was present in Geocortex HTML viewer in to VSW.
3 -
Would be great to listen to a LayerChanged- and LayerFilterChanged-Event on the newly added Display Form-Event ‘external’.
0 -
I would also like to have Layer List Events like “Layer Hovering” and “Layer Click”. This would allow us to add a layer summary or discription on hover, and automatic layer group expansion on click without the user having to select the Expand Arrow.
0 -
Good news dear Community, layers.visibility-changed is implemented with the upcoming 5.36 Studio Web release (June)
2 -
Hi Christian
I just checked the new layers.visibility-changed event out
First of all, great that the event is coming!
When I tested it, I realized that it only works on layer visibility and thus only can used in situations where eg. layers are turned on/off, layer presets are activated or changed between 2D/3D. Which is going to be great. However, we had also hoped to get an event which could be triggered by changes to the layer list itself for example when adding a layer through portal or from shapefile as well as when a shared project changes the layer list. As some of the use cases in this post mentions as well.
Do you know if this is something still on the idea board for future releases or thought to be incorporated in the layers.visibility-changed?
Further, the same functionality could be very nice to have for changes to the layer through filtering even though this does not change the layer list itself or visibility of layer. But maybe that should just be a new post?
Hope it makes sense0 -
Hi Everyone,
thank you for all the great ideas and input! Following events are also planned:- layers.definition-expression-changed [332436]
- layer-list.hovered [332438]
- layer-list.clicked [332440]
- layer-list.added [332442]
You can track their dev status in the changelog under their [IDs].
If you have ideas about any other events (even if they are layer events), please open new posts. Keeping the idea posts as small as possible, makes their tracking easier.1
Vous devez vous connecter pour laisser un commentaire.
Commentaires
13 commentaires