Package 

Class GoogleMapRenderer

  • All Implemented Interfaces:
    com.google.maps.android.renderer.Renderer

    
    public final class GoogleMapRenderer
     implements Renderer
                        

    A Renderer implementation that draws to a GoogleMap.

    • Constructor Summary

      Constructors 
      Constructor Description
      GoogleMapRenderer(GoogleMap map)
    • Method Summary

      Modifier and Type Method Description
      Unit addLayer(Layer layer) Adds a layer to the renderer.
      Boolean removeLayer(Layer layer) Removes a layer from the renderer.
      Collection<Layer> getLayers() Gets all layers currently managed by the renderer.
      Unit clear() Clears all layers from the renderer and removes their contents from the map.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GoogleMapRenderer

        GoogleMapRenderer(GoogleMap map)
    • Method Detail

      • addLayer

         Unit addLayer(Layer layer)

        Adds a layer to the renderer. The layer's contents should be drawn on the map.

        Parameters:
        layer - The layer to add.
      • removeLayer

         Boolean removeLayer(Layer layer)

        Removes a layer from the renderer. The layer's contents should be removed from the map.

        Parameters:
        layer - The layer to remove.
      • clear

         Unit clear()

        Clears all layers from the renderer and removes their contents from the map.