Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android map api-2 disable click

I'm in the middle of migrating one of my app to the Android map V2. I'm showing a marker on the map and don't want to send touch events to the map to change the position/zoom level etc. in the earlier version, i was able to disable touch by setting android:clickable="false" in the MapView . how can i do the same thing in the Android map V2?

like image 976
Asanka Senavirathna Avatar asked Feb 14 '13 11:02

Asanka Senavirathna


1 Answers

yourmap.getUiSettings().setAllGesturesEnabled(false);
like image 114
S.Prapagorn Avatar answered Oct 01 '22 09:10

S.Prapagorn