Package com.google.maps.android.data.kml
Class KmlRenderer
- java.lang.Object
-
- com.google.maps.android.data.Renderer
-
- com.google.maps.android.data.kml.KmlRenderer
-
public class KmlRenderer extends Renderer
Renders all visible KmlPlacemark and KmlGroundOverlay objects onto the GoogleMap as Marker, Polyline, Polygon, GroundOverlay objects. Also removes objects from the map.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.maps.android.data.Renderer
Renderer.ImagesCache
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLayerToMap()
java.lang.Iterable<KmlGroundOverlay>
getGroundOverlays()
Gets an iterable of KmlGroundOverlay objectsjava.lang.Iterable<KmlContainer>
getNestedContainers()
Gets an iterable of KmlContainerInterface objectsboolean
hasNestedContainers()
Checks if the layer contains any KmlContainersvoid
removeLayerFromMap()
Removes all the KML data from the map and clears all the stored placemarksvoid
setMap(com.google.android.gms.maps.GoogleMap map)
Sets the map that objects are being placed on-
Methods inherited from class com.google.maps.android.data.Renderer
assignStyleMap, getFeatures, getGroundOverlayMap, getMap, getValues, isLayerOnMap
-
-
-
-
Method Detail
-
addLayerToMap
public void addLayerToMap()
-
setMap
public void setMap(com.google.android.gms.maps.GoogleMap map)
Sets the map that objects are being placed on
-
hasNestedContainers
public boolean hasNestedContainers()
Checks if the layer contains any KmlContainers- Returns:
- true if there is at least 1 container within the KmlLayer, false otherwise
-
getNestedContainers
public java.lang.Iterable<KmlContainer> getNestedContainers()
Gets an iterable of KmlContainerInterface objects- Returns:
- iterable of KmlContainerInterface objects
-
getGroundOverlays
public java.lang.Iterable<KmlGroundOverlay> getGroundOverlays()
Gets an iterable of KmlGroundOverlay objects- Returns:
- iterable of KmlGroundOverlay objects
-
removeLayerFromMap
public void removeLayerFromMap()
Removes all the KML data from the map and clears all the stored placemarks
-
-