Is it possible to disable moving inside the google map?
We can stop user interactions with MapView or SupportMapFragment using GoogleMapOptions
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val mapOptions = GoogleMapOptions()
mapOptions.rotateGesturesEnabled(false)
mapOptions.zoomGesturesEnabled(false)
mapOptions.tiltGesturesEnabled(false)
mapOptions.scrollGesturesEnabled(false)
// Map View
val mapView = MapView(context, mapOptions)
mapView.onCreate(savedInstanceState)
// Or
val mapView = MapView(context
mapView.getMapAsync { googleMap ->
googleMap.uiSettings.setAllGesturesEnabled(false)
}
// Or Map Fragment
val mapFragment = SupportMapFragment.newInstance(mapOptions)
}