-
- 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 UnitaddLayer(Layer layer)Adds a layer to the renderer. BooleanremoveLayer(Layer layer)Removes a layer from the renderer. Collection<Layer>getLayers()Gets all layers currently managed by the renderer. Unitclear()Clears all layers from the renderer and removes their contents from the 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.
-
getLayers
Collection<Layer> getLayers()
Gets all layers currently managed by the renderer.
-
-
-
-