Juliusz Juliusz -4 years ago 144
Android Question

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

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 Source

Use android:clickable="false" in your layout file.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download