Skip to content
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

Invalid BBOX coordinates #18

Closed
blazs opened this issue Sep 8, 2016 · 1 comment
Closed

Invalid BBOX coordinates #18

blazs opened this issue Sep 8, 2016 · 1 comment

Comments

@blazs
Copy link

blazs commented Sep 8, 2016

When using Google Chrome, I sometimes getinvalid BBOX coordinates. The bug seems to occur rather sporadically, however, it seems to come up when one zooms in without touching the polygon and then asks for the coordinates (e.g. invokes getBounds()).

@valerio-bozzolan
Copy link

I think your map sometime has zero height or width sometime. Be sure to first initialize the map with an initial position and with a defined height and width before trying to call map.getBounds(). You are able to debug it calling map.getSize() and checking your browser console.

This is very difficult to reproduce without more information. If you have already fixed or if it's impossible to share further information to reproduce feel free to mark as closed. Thank you so much! :)

@blazs blazs closed this as completed Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants