public class MarkerManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
MarkerManager.Collection |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<O,C> |
mAllObjects |
protected GoogleMap |
mMap |
Constructor and Description |
---|
MarkerManager(GoogleMap map) |
Modifier and Type | Method and Description |
---|---|
C |
getCollection(java.lang.String id)
Gets a named collection that was created by
newCollection(String) |
android.view.View |
getInfoContents(Marker marker) |
android.view.View |
getInfoWindow(Marker marker) |
MarkerManager.Collection |
newCollection() |
C |
newCollection(java.lang.String id)
Create a new named collection, which can later be looked up by
getCollection(String) |
void |
onInfoWindowClick(Marker marker) |
boolean |
onMarkerClick(Marker marker) |
void |
onMarkerDrag(Marker marker) |
void |
onMarkerDragEnd(Marker marker) |
void |
onMarkerDragStart(Marker marker) |
boolean |
remove(O object)
Removes an object from its collection.
|
protected void |
removeObjectFromMap(Marker object) |
protected final GoogleMap mMap
protected final java.util.Map<O,C extends com.google.maps.android.collections.MapObjectManager.Collection> mAllObjects
public MarkerManager.Collection newCollection()
public android.view.View getInfoWindow(Marker marker)
public android.view.View getInfoContents(Marker marker)
public void onInfoWindowClick(Marker marker)
public boolean onMarkerClick(Marker marker)
public void onMarkerDragStart(Marker marker)
public void onMarkerDrag(Marker marker)
public void onMarkerDragEnd(Marker marker)
protected void removeObjectFromMap(Marker object)
public C newCollection(java.lang.String id)
getCollection(String)
id
- a unique id for this collection.public C getCollection(java.lang.String id)
newCollection(String)
id
- the unique id for this collection.public boolean remove(O object)
object
- the object to remove.