Switching tabs resets map extent to initial extent
Hi. I'm developing an app that has multiple tabs. One tab contains just the map. If I zoom in on the map, then click on another tab, when I go back to the map tab, it has reset to the initial extent. Is there a way of preserving the existing extent when clicking between tabs?
-
I don't know of “preventing”, but you can keep track of the current map extent in memory (through events and a workflow), then apply that saved extent when the map gets focus again.
0 -
I've played around with events, but find them to be pretty limited in what events you can intercept. I haven't found a way of capturing when a tab is clicked, so I don't know when the map gets the focus again. It might be my limited understanding of events…
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer