-
public final class LayerA container for a collection of MapObjects.
A Layer represents a logical grouping of map objects, such as the contents of a single KML file or a specific dataset. Layers can be added to and removed from a com.google.maps.android.renderer.Renderer.
-
-
Field Summary
Fields Modifier and Type Field Description private final Collection<MapObject>mapObjects
-
Constructor Summary
Constructors Constructor Description Layer()
-
Method Summary
Modifier and Type Method Description final Collection<MapObject>getMapObjects()final UnitaddMapObject(MapObject mapObject)Adds a map object to the layer. final UnitaddMapObjects(Collection<MapObject> mapObjects)Adds a collection of map objects to the layer. final BooleanremoveMapObject(MapObject mapObject)Removes a map object from the layer. final Unitclear()Clears all map objects from the layer. -
-
Method Detail
-
getMapObjects
final Collection<MapObject> getMapObjects()
-
addMapObject
final Unit addMapObject(MapObject mapObject)
Adds a map object to the layer.
- Parameters:
mapObject- The map object to add.
-
addMapObjects
final Unit addMapObjects(Collection<MapObject> mapObjects)
Adds a collection of map objects to the layer.
- Parameters:
mapObjects- The collection of map objects to add.
-
removeMapObject
final Boolean removeMapObject(MapObject mapObject)
Removes a map object from the layer.
- Parameters:
mapObject- The map object to remove.
-
-
-
-