Class Layer

  • All Implemented Interfaces:

    
    public final class Layer
    
                        

    A 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Layer()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • Layer

        Layer()
    • Method Detail

      • 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.
        Returns:

        True if the object was removed, false otherwise.

      • clear

         final Unit clear()

        Clears all map objects from the layer.