I am trying to set padding to my Google mMap.setPadding
. It's working but after adding it, another button has come for move to the current location
I dont want this. And also I want to map drag feature to be disabled.
Below is my code:
int width = getResources().getDisplayMetrics().widthPixels;
int padding = (int) (width * 0.20);
CameraUpdate cu = CameraUpdateFactory.newLatLngBounds(bounds, padding);
mMap.setPadding( 0, 270, 0, 430);
mMap.animateCamera(cu);
you should do this:
mMap.getUiSettings().setScrollGesturesEnabled(true);
mMap.getUiSettings().setZoomGesturesEnabled(true);