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);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.