com.google.android.gms.maps.UiSettings

Here are the examples of the java api class com.google.android.gms.maps.UiSettings taken from open source projects.

1. MapFragment#onMapReady()

Project: iosched
Source File: MapFragment.java
View license
@Override
public void onMapReady(GoogleMap googleMap) {
    mMap = googleMap;
    mMap.setIndoorEnabled(true);
    mMap.setMyLocationEnabled(false);
    mMap.setOnMarkerClickListener(this);
    mMap.setOnIndoorStateChangeListener(this);
    mMap.setOnMapClickListener(this);
    UiSettings mapUiSettings = mMap.getUiSettings();
    mapUiSettings.setZoomControlsEnabled(false);
    mapUiSettings.setMapToolbarEnabled(false);
    // load all markers
    LoaderManager lm = getLoaderManager();
    lm.initLoader(TOKEN_LOADER_MARKERS, null, mMarkerLoader).forceLoad();
    // load the tile overlays
    lm.initLoader(TOKEN_LOADER_TILES, null, mTileLoader).forceLoad();
    setupMap(true);
}

2. GoogleMapFragment#setupMapUI()

Project: Tower
Source File: GoogleMapFragment.java
View license
private void setupMapUI(GoogleMap map) {
    map.setMyLocationEnabled(false);
    UiSettings mUiSettings = map.getUiSettings();
    mUiSettings.setMyLocationButtonEnabled(false);
    mUiSettings.setMapToolbarEnabled(false);
    mUiSettings.setCompassEnabled(false);
    mUiSettings.setTiltGesturesEnabled(false);
    mUiSettings.setZoomControlsEnabled(false);
    mUiSettings.setRotateGesturesEnabled(mAppPrefs.isMapRotationEnabled());
}