opensciencemap / vtm

a vector-tile map library written in java - running on android, desktop and within the browser
GNU Lesser General Public License v3.0
238 stars 176 forks source link

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

Open MarsVard opened 9 years ago

MarsVard commented 9 years ago

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

CodeK1988 commented 1 year ago

hello mate did you solve it?

devemux86 commented 1 year ago

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