-
Notifications
You must be signed in to change notification settings - Fork 602
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 doesnt work anymore after drawing a polygon #437
Comments
@Ghistos this seems to be working for me in v0.11.9. What version are you using? |
I was using the version .10 when I tested |
Well, I just installed the v0.11.10 and I still can't use the fitBounds after drawing a polygon. Only a point. I tried it with a simple test. When I double click on the map before using draw, each time the fitBounds goes at the right place but as soon as I draw a polygon, the fitBounds doesnt work anymore. var map = new mapboxgl.Map({ } |
@Ghistos I was able to produce this both in Draw and in mapbox-gl-js. I've created a jsbin showing the problem in mapbox-gl-js and I have opened the upstream ticket. You can follow it here. |
Tks for the update |
@Ghistos - sorry for the long delay. The problem here is that your handler is running before the |
After I have drawn a polygon on my map, if I call map.fitBounds([[x,y], [x,y]], options) it doesnt work.
If I draw only a point, the map.fitBounds still working.
The text was updated successfully, but these errors were encountered: