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 I show a window, I want to zoom in on the map where the markers is. When I close the window, I want to zoom out and set new center. I use callbacks.
But when I have multiple markers I get some troubles. When "jumping" directly from one window to another, close, beforeclose and afterclose are executed after the new window is opened. Makes the new window does not get its correct zoom.
Is there a way to zoom out when "last" window is closed?
The text was updated successfully, but these errors were encountered:
A bit late, so I'm not sure if you still have this issue - but, have you tried putting the zoom function in afterclose? I'm not sure of the exact issue, a codepen would be helpful, but I feel like if you just put things that are supposed to happen after the previous windows closes, just put that in the afterclose event.
Sorry for my bad english. I will try to explain.
When I show a window, I want to zoom in on the map where the markers is. When I close the window, I want to zoom out and set new center. I use callbacks.
But when I have multiple markers I get some troubles. When "jumping" directly from one window to another, close, beforeclose and afterclose are executed after the new window is opened. Makes the new window does not get its correct zoom.
Is there a way to zoom out when "last" window is closed?
The text was updated successfully, but these errors were encountered: