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

Changing ZoomLevels #33

Closed
phil-applegate opened this issue Mar 27, 2013 · 3 comments
Closed

Changing ZoomLevels #33

phil-applegate opened this issue Mar 27, 2013 · 3 comments
Labels

Comments

@phil-applegate
Copy link

Hi,

I'm looking to change the zoom levels used in the MapView throughout it's life. Do you know of a way of doing this?

I've added a couple of zoomlevels through the addZoomLevel method but I'd then like to remove all the zoom levels and add a new set pointing at a different set of tiles - what would be the best way of doing this? Currently I am creating a new MapView object each time the zoomlevels need to change.

Thanks

@moagrius
Copy link
Owner

I'm trying to get an update done in the next few days - it should be trivial to add a removeZoomLevel method - in theory you should be able to add and remove levels at any point during runtime, but I've never tested it. I'd be curious to know how it works out. I'll post an update to this thread when I've had a chance to commit the next round of changes. Thanks.

@moagrius
Copy link
Owner

I've added a method resetZoomLevels. LMK if this works for you.

@phil-applegate
Copy link
Author

Yep, that's working great - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants