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

moveTo/slideTo rectangle #58

Closed cjbraden closed 11 years ago

cjbraden commented 11 years ago

It would be nice to move/slide to a rectangle and have the zoom level set appropriately

moagrius commented 11 years ago

Not sure what you mean?

cjbraden commented 11 years ago

Sorry, I thought this was going to show up under feature requests, and to be a little more clear, it would be nice to have a mapView function similar to moveToAndCenter or slideToAndCenter where you pass it a top left/bottom right or Rectangle object, (either image coords or geo coords) and it will move and zoom you to a best fit of that rectangle. Technically, it's possible now by figuring out the scale factor difference between my rectangle and the overall size of the map, then setting the zoom factor, but it might be nice to have built in support.

moagrius commented 11 years ago

I see - yes, I've been asked about that before. I've added it to the feature list - thanks for your input.

moagrius commented 11 years ago

This has been implemented in TileView (https://github.com/moagrius/TileView)... Although I actually added it to ZoomPanLayout (it's inherited by TileView, of course).