Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Fix calculateCenter and resize function #69

Merged
merged 1 commit into from
Mar 5, 2018

Conversation

shua123
Copy link
Contributor

@shua123 shua123 commented Feb 24, 2018

In the existing code calculateCenter is saving to a "center" variable that was never initialized. The window resize listener is then resetting center to map_centroid which is always the default centroid. This pull request creates a new variable to save the current map center and then has the window resize listener use that for map centering.

@derekeder
Copy link
Owner

Nice - thanks for fixing this @shua123! Merging.

@derekeder derekeder merged commit 265f2c2 into derekeder:master Mar 5, 2018
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.

None yet

2 participants