-
public interface RendererInterface for a renderer that can draw Layers onto a map.
Implementations of this interface handle the specifics of how to render the abstract com.google.maps.android.renderer.model.MapObjects contained in a layer to a specific map target (e.g., GoogleMap, GoogleMap Compose, etc.).
-
-
Method Summary
Modifier and Type Method Description abstract UnitaddLayer(Layer layer)Adds a layer to the renderer. abstract BooleanremoveLayer(Layer layer)Removes a layer from the renderer. abstract Collection<Layer>getLayers()Gets all layers currently managed by the renderer. abstract Unitclear()Clears all layers from the renderer and removes their contents from the map. -
-
Method Detail
-
addLayer
abstract 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
abstract 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
abstract Collection<Layer> getLayers()
Gets all layers currently managed by the renderer.
-
-
-
-