Class PolygonManager
-
- All Implemented Interfaces:
-
com.google.android.gms.maps.GoogleMap.OnPolygonClickListener
public class PolygonManager extends MapObjectManager<Polygon, PolygonManager.Collection> implements GoogleMap.OnPolygonClickListener
Keeps track of collections of polygons on the map. Delegates all Polygon-related events to each collection's individually managed listeners.
All polygon operations (adds and removes) should occur via its collection class. That is, don't add a polygon via a collection, then remove it via Polygon.remove()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPolygonManager.CollectionA collection of Polygons on the map with its own set of listeners.
-
Constructor Summary
Constructors Constructor Description PolygonManager(GoogleMap map)
-
Method Summary
Modifier and Type Method Description PolygonManager.CollectionnewCollection()UnitremoveObjectFromMap(Polygon polygon)UnitsetVisible(Polygon mapObject, Boolean visible)UnitonPolygonClick(Polygon polygon)-
-
Method Detail
-
newCollection
PolygonManager.Collection newCollection()
-
removeObjectFromMap
Unit removeObjectFromMap(Polygon polygon)
-
setVisible
Unit setVisible(Polygon mapObject, Boolean visible)
-
onPolygonClick
Unit onPolygonClick(Polygon polygon)
-
-
-
-