MapTIp Behavior - MapTipOnOpen event?
In the JSON file there is a section for MapTips, and I see events for MapTipClosedEvent and MapCalloutClosedEvent. Unfortunately what I need is an event for the MapTip opening. I want to make sure that any previous custom graphics or pushpins I have created get cleaned up before that popup opens, otherwise the screen can get messy. I cannot always rely on the idea that a user has properly ended their current workflow (address search) which clears out the pushpins and other graphics. How can I catch a MapTipOpenedEvent? Is it possible to add this in and how would that be done?
Thanks
Tami
0
-
Not sure if this will get you what you need or not, but in the viewer config there's a behavior called MapOnClickBehavior. Under that by default are the commands InvokeMapTip and ClearDefaultHighlights.
You could try adding ClearMarkupQuiet, RemovePushpins, or other commands you'd need to clear the map when your user clicks.0
Please sign in to leave a comment.
Comments
1 comment