Code example for UiSettings

Methods: setMyLocationButtonEnabled

0
 
    public void setZoomButtonsEnabled(View v) {
        if (!checkReady()) { 
            return; 
        } 
        // Enables/disables the zoom controls (+/- buttons in the bottom right of the map). 
        mUiSettings.setZoomControlsEnabled(((CheckBox) v).isChecked());
    } 
 
    public void setCompassEnabled(View v) {
        if (!checkReady()) { 
            return; 
        } 
        // Enables/disables the compass (icon in the top left that indicates the orientation of the 
        // map). 
        mUiSettings.setCompassEnabled(((CheckBox) v).isChecked());
    } 
 
    public void setMyLocationButtonEnabled(View v) {
        if (!checkReady()) { 
            return;