0

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

enter image description here

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);
Graipher
  • 6,891
  • 27
  • 47
SK. Fuad
  • 371
  • 4
  • 9

1 Answers1

0

you should do this:

mMap.getUiSettings().setScrollGesturesEnabled(true);
mMap.getUiSettings().setZoomGesturesEnabled(true);
Pouya Danesh
  • 1,557
  • 2
  • 19
  • 36
Adnan
  • 16