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

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

Android MarkerOptions examples from Open Source projects
This code example shows how to use the following methods:
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:
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:
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: position, title, visible
66:	MarkerOptions mopt=new MarkerOptions(); 
67:	mopt.position(pos1); 
68:	mopt.title(savedText.getText().toString().trim()); 
69:	mopt.visible(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: position, title, visible
100:	MarkerOptions mopt=new MarkerOptions(); 
101:	mopt.position(pos); 
102:	mopt.title("YOU"); 
103:	mopt.visible(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: anchor, icon, position, snippet, title
20:	MarkerOptions markerOptions = new MarkerOptions(); 
21:	markerOptions.anchor(0.5f, 1f); 
-
23:	markerOptions.title(item.getTitle().toString()); 
-
26:	markerOptions.snippet(item.getSnippet().toString()); 
-
28:	markerOptions.position(new UniversalGeoPoint(item.getGeoPoint()).createGoogleV2Point()); 
-
35:	markerOptions.icon(BitmapDescriptorFactory.fromBitmap(((BitmapDrawable) itemMarker).getBitmap())); 
-
50:	markerOptions.icon(BitmapDescriptorFactory.fromBitmap(bitmap)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
151:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
154:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: draggable, icon, position, snippet, title
27:	MarkerOptions pontoVisivel = new MarkerOptions(); 
28:	pontoVisivel.position(latLng); 
29:	pontoVisivel.icon(icon) ; 
30:	pontoVisivel.title(titulo); 
31:	pontoVisivel.snippet(subTitulo); 
32:	pontoVisivel.draggable(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: draggable, position, snippet, title
65:	MarkerOptions options = new MarkerOptions(); 
66:	options.position(new LatLng(lat, lng)); 
67:	options.title(title); 
68:	options.snippet(time); 
69:	options.draggable(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
154:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: describeContents, icon, position, title
44:	MarkerOptions markerOptions = new MarkerOptions(); 
45:	markerOptions.describeContents(); 
46:	markerOptions.position(latLng); 
47:	markerOptions.title(title); 
48:	markerOptions.icon(BitmapDescriptorFactory.defaultMarker(color)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: position
31:	MarkerOptions mOptions = new MarkerOptions(); 
32:	mOptions.position(DENTON_PARKING_GARAGE); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: icon, position, snippet, title
92:	MarkerOptions markerOptions = new MarkerOptions(); 
93:	markerOptions.title(field.getName()); // 名前を設定 
94:	markerOptions.snippet(field.getMemo()); // 説明を設定 
-
96:	markerOptions.position(calcCenter(field.getVertexes())); 
-
98:	markerOptions.icon(BitmapDescriptorFactory.defaultMarker(field.getColorHue())); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: position, snippet, title
96:	MarkerOptions markerOptions = new MarkerOptions(); 
97:	markerOptions.position(latLng); 
98:	markerOptions.title(Integer.toString(userID)); 
99:	markerOptions.snippet(text); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
148:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: icon, position, title
80:	MarkerOptions marker = new MarkerOptions(); 
81:	marker.position(latlng); 
82:	marker.title(title); 
83:	marker.icon(markerIcon); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
165:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: draggable, icon, position, title
62:	MarkerOptions markerOptions = new MarkerOptions(); 
63:	markerOptions.title(""); 
64:	markerOptions.icon(BitmapDescriptorFactory.defaultMarker()); 
65:	markerOptions.position(latLng); 
66:	markerOptions.draggable(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
209:	map.addMarker(new MarkerOptions().position(new LatLng(lat, lon)) 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: position, title
63:	MarkerOptions markerOptions = new MarkerOptions(); 
-
66:	markerOptions.position(latLng); 
-
70:	markerOptions.title(latLng.latitude + " : " + latLng.longitude); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
134:	mMap.addMarker(new MarkerOptions() 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: icon, position
71:	MarkerOptions options = new MarkerOptions(); 
-
74:	options.position(point); 
-
81:	options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)); 
-
83:	options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: isVisible, visible
56:	boolean visible = markerOptions.isVisible(); 
57:	markerOptions.visible(false); 
58:	LazyMarker realMarker = new LazyMarker(factory.getMap(), markerOptions, this); 
59:	markerOptions.visible(visible); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: icon, position
71:	MarkerOptions options = new MarkerOptions(); 
-
74:	options.position(point); 
-
81:	options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)); 
-
83:	options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: position
47:	MarkerOptions options = new MarkerOptions(); 
48:	options.position(hackerspaceLocation); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: position, title
208:	MarkerOptions markerOpt = new MarkerOptions(); 
209:	markerOpt.position(new LatLng(lat, lng)); 
210:	markerOpt.title("我在這裡"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
84:	mMap.addMarker(new MarkerOptions().position(new LatLng(0, 0)).title("Marker")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: icon, position
157:	MarkerOptions options1 = new MarkerOptions(); 
158:	options1.position(point1); 
159:	options1.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: position
52:	MarkerOptions marker = new MarkerOptions(); 
-
54:	marker.position(ll).title("My Location"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
88:	mMap.addMarker(new MarkerOptions().position(new LatLng(0, 0)).title("Marker")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
65:	mMap.addMarker(new MarkerOptions().position(new LatLng(0, 0)).title("Marker")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAnchorU, getAnchorV, getIcon
104:	icon = markerOptions.getIcon(); 
105:	horizAnchor = markerOptions.getAnchorU(); 
106:	vertAnchor = markerOptions.getAnchorV(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: title
99:	MarkerOptions options = new MarkerOptions(); 
100:	options.title(title).position(coords).snippet(note); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
199:	MarkerOptions markerOptions = new MarkerOptions() 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getPosition
228:	LatLng from = currentLocation.getPosition(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: snippet
201:	markerOptions.snippet(snippet); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: position
257:	markerOptions.position(latLng); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getPosition
81:	return markerOptions.getPosition(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getPosition
29:	assertEquals(new LatLng(0,0), opts.getPosition()); 
Full Snippet Info
4
CodeRank
Related Android MarkerOptions Questions & Answers:
Other Android MarkerOptions Examples
23:	    map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))
24:	        .getMap();
25:	    Marker hamburg = map.addMarker(new MarkerOptions().position(HAMBURG)
26:	        .title("Hamburg"));
27:	    Marker kiel = map.addMarker(new MarkerOptions()
-
25:	    Marker hamburg = map.addMarker(new MarkerOptions().position(HAMBURG)
26:	        .title("Hamburg"));
27:	    Marker kiel = map.addMarker(new MarkerOptions()
28:	        .position(KIEL)
29:	        .title("Kiel")

Read More

3:	
4:	// create marker
5:	MarkerOptions marker = new MarkerOptions().position(new LatLng(latitude, longitude)).title("Hello Maps");
6:	
7:	// Changing marker icon
-
3:	
4:	// create marker
5:	MarkerOptions marker = new MarkerOptions().position(new LatLng(latitude, longitude)).title("Hello Maps");
6:	
7:	// Changing marker icon

Read More

3:	
4:	// create marker
5:	MarkerOptions marker = new MarkerOptions().position(new LatLng(latitude, longitude)).title("Hello Maps ");
6:	
7:	// adding marker
-
3:	
4:	// create marker
5:	MarkerOptions marker = new MarkerOptions().position(new LatLng(latitude, longitude)).title("Hello Maps ");
6:	
7:	// adding marker

Read More

See Code Examples for Android MarkerOptions Methods: