Java Code Examples for com.google.android.gms.maps.GoogleMap#MAP_TYPE_NORMAL

The following examples show how to use com.google.android.gms.maps.GoogleMap#MAP_TYPE_NORMAL . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MovingMarkerActivity.java    From Airbnb-Android-Google-Map-View with MIT License 5 votes vote down vote up
public void toggleStyle() {
    if (GoogleMap.MAP_TYPE_NORMAL == mGoogleMap.getMapType()) {
        mGoogleMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
    } else {
        mGoogleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
    }
}
 
Example 2
Source File: GoogleMapUtis.java    From Airbnb-Android-Google-Map-View with MIT License 5 votes vote down vote up
public static void toggleStyle(GoogleMap googleMap) {
	if (GoogleMap.MAP_TYPE_NORMAL == googleMap.getMapType()) {
		googleMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);		
	} else {
		googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
	}
}
 
Example 3
Source File: NativeGoogleMapFragment.java    From AirMapView with Apache License 2.0 5 votes vote down vote up
@Override public void setMapType(MapType type) {
  int nativeType = 0;
  switch (type) {
    case MAP_TYPE_NORMAL:
      nativeType = GoogleMap.MAP_TYPE_NORMAL;
      break;
    case MAP_TYPE_SATELLITE:
      nativeType = GoogleMap.MAP_TYPE_SATELLITE;
      break;
    case MAP_TYPE_TERRAIN:
      nativeType = GoogleMap.MAP_TYPE_TERRAIN;
      break;
  }
  googleMap.setMapType(nativeType);
}
 
Example 4
Source File: DrawerListAdapter.java    From MapsMeasure with Apache License 2.0 5 votes vote down vote up
public void changeView(final int newView) {
    switch (newView) {
        case GoogleMap.MAP_TYPE_NORMAL:
            selected_view = 7;
            break;
        case GoogleMap.MAP_TYPE_HYBRID:
            selected_view = 8;
            break;
        case GoogleMap.MAP_TYPE_TERRAIN:
            selected_view = 9;
            break;
    }
    notifyDataSetInvalidated();
}