moagrius / MapView

(Deprecated, prefer https://github.com/moagrius/TileView) Android widget roughly described as a hybrid between com.google.android.maps.MapView and iOS's CATiledLayer
http://moagrius.github.com/MapView/documentation
69 stars 35 forks source link

Changing ZoomLevels #33

Closed phil-applegate closed 11 years ago

phil-applegate commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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

phil-applegate commented 11 years ago

Yep, that's working great - thanks!