-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
map.fitBounds with callback after operation end #6417
Comments
It would be great if map functions that modifying map state, will return |
What i did was, adding method to my map (uses jquery promise, but can be easily replaced):
|
Can you replace |
This will not happen. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would be nice to add a callback/then whenever map.fitBounds() ended its operation. Today we have to rely adding
map.once('zoomend moveend', function());
to make something happen after.For example, to make a marker bounce after appearing, i have to:
Would be nice to do something like:
map.fitBounds(marker.getBounds()).then(()=>{bounceMarker(marker);});
The text was updated successfully, but these errors were encountered: