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

Stop re-zooming map on reload of locations #172

Open
dstaros opened this issue Jun 22, 2017 · 3 comments
Open

Stop re-zooming map on reload of locations #172

dstaros opened this issue Jun 22, 2017 · 3 comments
Milestone

Comments

@dstaros
Copy link

dstaros commented Jun 22, 2017

I am using the .Load() method to load some new locations via ajax. This works fine, but, upon the new locations being loaded, the map screen zooms back to 0 then zooms into to the zoom level I specify for a location. Is there a way to load new locations without any affect to the current zoom?

You can see this fiddle which shows a similar process.

https://jsfiddle.net/r85tfm83/2/

If you zoom on the map and then click the Add New Locations button you will see the map zoom back out.

@danielemoraschi
Copy link
Owner

No option for that at the moment unfortunately :/
I'll might add the feature into one of the next versions I am preparing.

@danielemoraschi danielemoraschi added this to the v0.2.11 milestone Jun 22, 2017
@dstaros
Copy link
Author

dstaros commented Jun 22, 2017

Thanks for looking into it!

@dstaros
Copy link
Author

dstaros commented Jun 30, 2017

Just wondering if there is another way to update a location without the entire map redrawing. I just need to update the radius and fill color of my loaded locations without the map being redrawn. Is this possible?

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