Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

feature request: limit map zoom(min, max) and scrolling bounds #156

Open
MarsVard opened this issue May 20, 2015 · 2 comments
Open

feature request: limit map zoom(min, max) and scrolling bounds #156

MarsVard opened this issue May 20, 2015 · 2 comments

Comments

@MarsVard
Copy link

I think it would be usefull for offline maps to be able to limit the scrolling bounds because otherwise the users sees the empty not loaded parts of the map.

So limiting scrolling to map bounds would be nice and limiting zoom levels would also be very interesting for navigational applications where you do not want the user to zoom out to zoom level 0 for instance...

hjanetzek added a commit to hjanetzek/vtm that referenced this issue Jun 17, 2015
hjanetzek pushed a commit to hjanetzek/vtm that referenced this issue Nov 18, 2018
@CodeK1988
Copy link

hello mate did you solve it?

@devemux86
Copy link

devemux86 commented Feb 8, 2023

You can limit the map view with the set methods in ViewPort:

mapView.map().viewport().set...

Development continues at https://github.com/mapsforge/vtm

For questions please use the Discussions: https://github.com/mapsforge/vtm/discussions

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

No branches or pull requests

3 participants