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

Resize of map panel always zooms to max extent #5

Open
hulken opened this issue Mar 14, 2012 · 0 comments
Open

Resize of map panel always zooms to max extent #5

hulken opened this issue Mar 14, 2012 · 0 comments

Comments

@hulken
Copy link

hulken commented Mar 14, 2012

On resize of the map panel makes the map zoom to max extent. If the map is zoomed in then this is not a wanted behavior.
This happens because of:

In Map.js
afterLayout(), runs after resize, it calls me.renderMap() on line 328.

renderMap() runs setInitialExtent()

This will set zoom and center or zoom to max extent.

A check if the zoom level is different from initial set and zero is one solution to solve this.

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

1 participant