Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Conversation

@clompsy
Copy link
Contributor

@clompsy clompsy commented Jul 9, 2018

Correct usage of options to set zoom with the center to avoid recentering to 0,0 when loading panel.
When applying a zoom after creating the map, the zoom overrides the provided center in the options and makes the map zoom on 0,0 ignoring the individual center defined in the options.
Fixes #149

@CLAassistant
Copy link

CLAassistant commented Jul 9, 2018

CLA assistant check
All committers have signed the CLA.

@daniellee
Copy link
Contributor

The tests do not pass and this does not work for existing panels for me. This property looks incorrect:

this.panel.initialZoom

@daniellee daniellee merged commit bec5752 into grafana:master Jul 16, 2018
daniellee added a commit that referenced this pull request Jul 16, 2018
Fixes the #150 PR so that the tests pass and the fix works.
lha-wd pushed a commit to lha-wd/worldmap-panel that referenced this pull request Apr 1, 2019
Fixes the grafana#150 PR so that the tests pass and the fix works.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants