Class GroundOverlayManager
- java.lang.Object
-
- com.google.maps.android.collections.GroundOverlayManager
-
- All Implemented Interfaces:
com.google.android.gms.maps.GoogleMap.OnGroundOverlayClickListener
public class GroundOverlayManager extends java.lang.Object implements com.google.android.gms.maps.GoogleMap.OnGroundOverlayClickListenerKeeps track of collections of ground overlays on the map. Delegates all GroundOverlay-related events to each collection's individually managed listeners.All ground overlay operations (adds and removes) should occur via its collection class. That is, don't add a ground overlay via a collection, then remove it via GroundOverlay.remove()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classGroundOverlayManager.Collection
-
Constructor Summary
Constructors Constructor Description GroundOverlayManager(com.google.android.gms.maps.GoogleMap map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CgetCollection(java.lang.String id)Gets a named collection that was created bynewCollection(String)GroundOverlayManager.CollectionnewCollection()CnewCollection(java.lang.String id)Create a new named collection, which can later be looked up bygetCollection(String)voidonGroundOverlayClick(com.google.android.gms.maps.model.GroundOverlay groundOverlay)booleanremove(O object)Removes an object from its collection.
-
-
-
Method Detail
-
newCollection
public GroundOverlayManager.Collection newCollection()
-
onGroundOverlayClick
public void onGroundOverlayClick(@NonNull com.google.android.gms.maps.model.GroundOverlay groundOverlay)- Specified by:
onGroundOverlayClickin interfacecom.google.android.gms.maps.GoogleMap.OnGroundOverlayClickListener
-
newCollection
public C newCollection(java.lang.String id)
Create a new named collection, which can later be looked up bygetCollection(String)- Parameters:
id- a unique id for this collection.
-
getCollection
public C getCollection(java.lang.String id)
Gets a named collection that was created bynewCollection(String)- Parameters:
id- the unique id for this collection.
-
remove
public boolean remove(O object)
Removes an object from its collection.- Parameters:
object- the object to remove.- Returns:
- true if the object was removed.
-
-