Class 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.
    • 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
        Overrides:
        setMap in class Renderer
        Parameters:
        map - map to place placemark, container, style and ground overlays 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