Change zoom in mapsforge

Hello, I develop an app with mapsforge which just permit to show a map in one zoom level, without touch event and navigation.
I create a menu where I can choose a map and a zoom level but I don’t know how I can fix this zoom to the map using an extended class of MapView.

Thank you for your help :slight_smile:



Thnak you very much ! I didn’t think to use this class !
So now, i can retrieve my zoom level and my position in my extended class of MapView with :

public boolean onTouchEvent(MotionEvent motionEvent) {

	float x = motionEvent.getX();
	float y = motionEvent.getY();
	byte zoomLevel = this.getMapPosition().getZoomLevel();
        return true;

For example I get X : 804.3716, Y : 344.0, Zoom : 13
And now I want to get the geographic coordinates (the mercator point). I try to use the class MercatorProjection in org.mapsforge.core but It seems that it’s not the right solution … :confused:

How can I do that ?