Best code examples for Android GoogleMap class (com.google.android.gms.maps.GoogleMap)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android GoogleMap class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android GoogleMap examples from Open Source projects
This code example shows how to use the following methods: animateCamera, setMyLocationEnabled
38:	map.setMyLocationEnabled(true); 
39:	map.animateCamera(zoomToLastKnownLatLng()); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: addMarker, animateCamera, setOnMarkerClickListener, setOnMarkerDragListener
203:	mMap.addMarker(markerOptions); 
204:	mMap.setOnMarkerDragListener(this); 
205:	mMap.setOnMarkerClickListener(this); 
-
208:	mMap.animateCamera(CameraUpdateFactory.newLatLng(mMarkerPosition)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker
54:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addCircle, addMarker, clear, getCameraPosition, setLocationSource
40:	map.setLocationSource(this); 
41:	map.setMyLocationEnabled(true); 
42:	map.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
-
113:	map.clear(); 
-
123:	LatLng mapCenter = map.getCameraPosition().target; 
124:	HomeMarker = map.addMarker(new MarkerOptions().position(mapCenter).title("Home").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)).draggable(true)); 
125:	PositionHoldMarker = map.addMarker(new MarkerOptions().position(mapCenter).title("PositionHold").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN))); 
126:	CurrentWPCircle = map.addCircle(new CircleOptions().center(mapCenter).radius(distanceWhenWPReached).fillColor(Color.argb(50, 0, 255, 50))); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setOnCameraChangeListener, setOnMapClickListener, setOnMapLongClickListener
69:	mMap.setOnMapClickListener(this); 
70:	mMap.setOnMapLongClickListener(this); 
71:	mMap.setOnCameraChangeListener(this); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addMarker
129:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: animateCamera
159:	map.animateCamera(cu); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setMapType
67:	map.setMapType(MAP_TYPES[itemPosition]); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setMyLocationEnabled, setOnInfoWindowClickListener, setOnMarkerClickListener
139:	map.setMyLocationEnabled(true); 
140:	map.setOnMarkerClickListener(this); 
141:	map.setOnInfoWindowClickListener(this); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
47:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.233305,-76.648709)).title("Canada")); 
48:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
49:	mMap.setMyLocationEnabled(false); 
50:	mMap.getUiSettings().setZoomControlsEnabled(false); 
51:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker
140:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
47:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.233181, -76.646596)).title("Austria")); 
48:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
49:	mMap.setMyLocationEnabled(false); 
50:	mMap.getUiSettings().setZoomControlsEnabled(false); 
51:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: aW
23:	markers = new MarkerManager(mMap); 
24:	missionPath = new MapPath(mMap); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker
151:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
46:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.235983,-76.647475)).title("Scandinavia")); 
47:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
48:	mMap.setMyLocationEnabled(false); 
49:	mMap.getUiSettings().setZoomControlsEnabled(false); 
50:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker
154:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
47:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.235983,-76.647475)).title("Scandinavia")); 
48:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
49:	mMap.setMyLocationEnabled(false); 
50:	mMap.getUiSettings().setZoomControlsEnabled(false); 
51:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker
147:	Marker marker= 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
47:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.234228,-76.648505)).title("Germany")); 
48:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
49:	mMap.setMyLocationEnabled(false); 
50:	mMap.getUiSettings().setZoomControlsEnabled(false); 
51:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker
154:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
47:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.235778,-76.644562)).title("Greece")); 
48:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
49:	mMap.setMyLocationEnabled(false); 
50:	mMap.getUiSettings().setZoomControlsEnabled(false); 
51:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker
165:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
47:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.235232,-76.646102)).title("Scotland")); 
48:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
49:	mMap.setMyLocationEnabled(false); 
50:	mMap.getUiSettings().setZoomControlsEnabled(false); 
51:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
47:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.234377, -76.648736)).title("France")); 
48:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
49:	mMap.setMyLocationEnabled(false); 
50:	mMap.getUiSettings().setZoomControlsEnabled(false); 
51:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker
134:	mMap.addMarker(new MarkerOptions() 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
47:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.233677,-76.644332)).title("Italy")); 
48:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
49:	mMap.setMyLocationEnabled(false); 
50:	mMap.getUiSettings().setZoomControlsEnabled(false); 
51:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
47:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.234275,-76.643752)).title("Spain")); 
48:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
49:	mMap.setMyLocationEnabled(false); 
50:	mMap.getUiSettings().setZoomControlsEnabled(false); 
51:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
49:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.232449, -76.645534)).title("Verbolten").snippet("Brave the Black Forest!")); 
50:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
51:	mMap.setMyLocationEnabled(false); 
52:	mMap.getUiSettings().setZoomControlsEnabled(false); 
53:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
55:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.235021, -76.642571)).title("Apollo's Chariot").snippet("Brave the race to the sun!")); 
56:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
57:	mMap.setMyLocationEnabled(false); 
58:	mMap.getUiSettings().setZoomControlsEnabled(false); 
59:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
58:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.234546, -76.642438)).title("Turkish Delight")); 
59:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
60:	mMap.setMyLocationEnabled(false); 
61:	mMap.getUiSettings().setZoomControlsEnabled(false); 
62:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
58:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.234718, -76.646138)).title("Loch Ness Monster").snippet("The legendary Loch ness")); 
59:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
60:	mMap.setMyLocationEnabled(false); 
61:	mMap.getUiSettings().setZoomControlsEnabled(false); 
62:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
58:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.233352, -76.649015)).title("Le Catapult")); 
59:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
60:	mMap.setMyLocationEnabled(false); 
61:	mMap.getUiSettings().setZoomControlsEnabled(false); 
62:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
58:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.234798, -76.643428)).title("Battering Ram")); 
59:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
60:	mMap.setMyLocationEnabled(false); 
61:	mMap.getUiSettings().setZoomControlsEnabled(false); 
62:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
58:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.234559, -76.643358)).title("Da Vini's Cradle")); 
59:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
60:	mMap.setMyLocationEnabled(false); 
61:	mMap.getUiSettings().setZoomControlsEnabled(false); 
62:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
58:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.232101, -76.6457)).title("Wirbelwind")); 
59:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
60:	mMap.setMyLocationEnabled(false); 
61:	mMap.getUiSettings().setZoomControlsEnabled(false); 
62:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addMarker, getUiSettings, moveCamera, setMapType, setMyLocationEnabled
58:	mMap.addMarker(new MarkerOptions().position(new LatLng(37.233472, -76.645332)).title("Rhine River Cruise")); 
59:	mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
60:	mMap.setMyLocationEnabled(false); 
61:	mMap.getUiSettings().setZoomControlsEnabled(false); 
62:	mMap.moveCamera(CameraUpdateFactory.newCameraPosition(HOME)); 
Full Snippet Info
6
CodeRank
Related Android GoogleMap Questions & Answers:
Other Android GoogleMap Examples
15:	  static final LatLng HAMBURG = new LatLng(53.558, 9.927);
16:	  static final LatLng KIEL = new LatLng(53.551, 9.993);
17:	  private GoogleMap map;
18:	
19:	  @Override

Read More

1:	
2:		// Google Map
3:		private GoogleMap googleMap;
4:	
5:		@Override

Read More

See Code Examples for Android GoogleMap Methods: