Expose more events in the Web designer
TerminéeRELEASED: Web 5.6
Currently, there is only one event exposed in the Web designer: The map has the Map Initialized event. (maybe there are more, I didn't check all components).
I'd like to propose to expose more events in the designer. One that I could use right now is 'viewpointChanged'.
-
Hi Berend - I agree. Currently in master and you'll see many more events exposed in Web Designer in 5.6 (April).
You'll note of that one of the hooks below is the one you are looking for.
Here's a list of what is coming in 5.6:
App:
- onInitializing
- onInitialized
Layout:
- onLayoutLoading
- onLayoutLoaded
feature-details:
- onFeatureShow: CommandSettings;
- onFeatureHide: CommandSettings;
- onFeatureAdd: CommandSettings;
- onFeatureRemove: CommandSettings;
Map:
- onClick: CommandSettings;
- onInitialized: CommandSettings;
- onViewpointChanged: CommandSettings;
Search:
- onClear: CommandSettings;
- onSearch: CommandSettings;
Results (list/table):
- onFeatureClick: CommandSettings;
- onFeatureRemove: CommandSettings;
- onAllFeaturesRemoved: CommandSettings;
- onFeatureAdd: CommandSettings;
- onFeatureShow: CommandSettings;
- onFeatureHide: CommandSettings;
- onHover: CommandSettings;
- onHoverEnd: CommandSettings;
- onSelect: CommandSettings;
- onDeselect: CommandSettings;
Predefined Web Tool:
- pointIdentifyDetails
1 -
Hi Cam,
It would be nice if an event was added which fires when using the 2d/3d toggle.
0 -
Hi Bob,
That's certainly something we can consider adding. Can you help me flesh-out the use case around what you might use such an event for?
Just so you know the "Map Viewpoint Changed" event is fired when you use the 2D/3D toggle (but obviously also when you just move the map or scene around) if that is something you can take advantage of for your use case.
0 -
+1 an event for layer visibility (toggle) change. Like it would be cool if I could change if a KPI was visible or not based on if the layer was toggled as visible.
1
Vous devez vous connecter pour laisser un commentaire.
Commentaires
4 commentaires