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

moveTo/slideTo rectangle #58

Closed
cjbraden opened this issue Jun 24, 2013 · 4 comments
Closed

moveTo/slideTo rectangle #58

cjbraden opened this issue Jun 24, 2013 · 4 comments

Comments

@cjbraden
Copy link

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

@moagrius
Copy link
Owner

Not sure what you mean?

@cjbraden
Copy link
Author

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
Copy link
Owner

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

@moagrius
Copy link
Owner

moagrius commented Aug 5, 2013

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).

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