Can I disable drag functionality when the user tries to drag the map with his fingers without disturbing the Zoom in and Zoom out?
Any one please suggest an idea of doing this! Thanks for your Precious help!!
Can I disable drag functionality when the user tries to drag the map with his fingers without disturbing the Zoom in and Zoom out?
Any one please suggest an idea of doing this! Thanks for your Precious help!!
You can disable dragging in
MapFragment
using:I think here's what you're looking for:
Inside Google Maps Android v2
for disable dragging in
MapFragment
this code :works as @tomrozb said. but it dosn't disable map zoom by touch on map. for that use this code beside above code:
you can use isScrollGesturesEnabled for map
java:
googleMap.getUiSettings().setZoomGesturesEnabled(false)
;kotlin