Disable pan/zoom in com.google.android.maps.MapView

Juliusz picture Juliusz · Sep 1, 2010 · Viewed 9.6k times · Source

How can i disable the panning/zooming functionality of a MapView (not the zoom controls, i want a wholly static map)?

I've also noticed that touching the map doesn't seem to trigger the MapView onClickListener, could anyone elaborate why?

Answer

Sveinung Kval Bakken picture Sveinung Kval Bakken · Jun 16, 2013

For version 2 of the Google Maps API for Android, this is the way:

map.getUiSettings().setScrollGesturesEnabled(false);