Android – Google Maps api v2 – Disable Zoom control

the setting you used is right, but to disable it, it should be false.


hope I got your question right..


Unfortunately, you can’t hide one zoom buttons, what you can do is hide both buttons and create your own custom zoom control and place them on the your map.

@Coderji said it’s impossible. I say it’s possible 🙂

You can hide one of zoom button (+ or -) and perform on them all operations like in normal view (margins, size, padding, etc.)

    SupportMapFragment mapView = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(;
    View zoomControls = mapView.getView().findViewById(0x1);

    for(int i=0;i<((ViewGroup)zoomControls).getChildCount();i++){
        View child=((ViewGroup)zoomControls).getChildAt(i);
        if (i==0) {
            // there is your "+" button, zoom in

        if (i==1) {
            // there is your "-" button, I hide it in this example

Call this on your GoogleMap to get UiSettings

ThensetZoomControlsEnabled(false) on the UiSettings

Leave a Comment