Package 

Class KmlLayer


  • 
    public class KmlLayer
    extends Layer
                        

    Document class allows for users to input their KML data and output it onto the map

    • Constructor Detail

      • KmlLayer

        KmlLayer(GoogleMap map, int resourceId, Context context)
        Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
        Parameters:
        map - GoogleMap object
        resourceId - Raw resource KML or KMZ file
        context - The Context
      • KmlLayer

        KmlLayer(GoogleMap map, int resourceId, Context context, int maxKmzEntryCount, long maxKmzUncompressedTotalSize)
        Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
        Parameters:
        map - GoogleMap object
        resourceId - Raw resource KML or KMZ file
        context - The Context
        maxKmzEntryCount - The maximum number of entries a KMZ file can contain.
        maxKmzUncompressedTotalSize - The maximum size of the uncompressed KMZ file in bytes.
      • KmlLayer

        KmlLayer(GoogleMap map, InputStream stream, Context context)
        Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
        Parameters:
        map - GoogleMap object
        stream - InputStream containing KML or KMZ file
        context - The Context
      • KmlLayer

        KmlLayer(GoogleMap map, InputStream stream, Context context, int maxKmzEntryCount, long maxKmzUncompressedTotalSize)
        Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
        Parameters:
        map - GoogleMap object
        stream - InputStream containing KML or KMZ file
        context - The Context
        maxKmzEntryCount - The maximum number of entries a KMZ file can contain.
        maxKmzUncompressedTotalSize - The maximum size of the uncompressed KMZ file in bytes.
      • KmlLayer

        KmlLayer(GoogleMap map, int resourceId, Context context, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager, Renderer.ImagesCache cache)
        Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
        Parameters:
        map - GoogleMap object
        resourceId - Raw resource KML or KMZ file
        context - The Context
        markerManager - marker manager to create marker collection from
        polygonManager - polygon manager to create polygon collection from
        polylineManager - polyline manager to create polyline collection from
        groundOverlayManager - ground overlay manager to create ground overlay collection from
        cache - cache to be used for fetched images
      • KmlLayer

        KmlLayer(GoogleMap map, int resourceId, Context context, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager, Renderer.ImagesCache cache, int maxKmzEntryCount, long maxKmzUncompressedTotalSize)
        Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
        Parameters:
        map - GoogleMap object
        resourceId - Raw resource KML or KMZ file
        context - The Context
        markerManager - marker manager to create marker collection from
        polygonManager - polygon manager to create polygon collection from
        polylineManager - polyline manager to create polyline collection from
        groundOverlayManager - ground overlay manager to create ground overlay collection from
        cache - cache to be used for fetched images
        maxKmzEntryCount - The maximum number of entries a KMZ file can contain.
        maxKmzUncompressedTotalSize - The maximum size of the uncompressed KMZ file in bytes.
      • KmlLayer

        KmlLayer(GoogleMap map, InputStream stream, Context context, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager, Renderer.ImagesCache cache)
        Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
        Parameters:
        map - GoogleMap object
        stream - InputStream containing KML or KMZ file
        context - The Context
        markerManager - marker manager to create marker collection from
        polygonManager - polygon manager to create polygon collection from
        polylineManager - polyline manager to create polyline collection from
        groundOverlayManager - ground overlay manager to create ground overlay collection from
        cache - cache to be used for fetched images
      • KmlLayer

        KmlLayer(GoogleMap map, InputStream stream, Context context, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager, Renderer.ImagesCache cache, int maxKmzEntryCount, long maxKmzUncompressedTotalSize)
        Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
        Parameters:
        map - GoogleMap object
        stream - InputStream containing KML or KMZ file
        context - The Context
        markerManager - marker manager to create marker collection from
        polygonManager - polygon manager to create polygon collection from
        polylineManager - polyline manager to create polyline collection from
        groundOverlayManager - ground overlay manager to create ground overlay collection from
        cache - cache to be used for fetched images
        maxKmzEntryCount - The maximum number of entries a KMZ file can contain.
        maxKmzUncompressedTotalSize - The maximum size of the uncompressed KMZ file in bytes.
      • KmlLayer

        KmlLayer(GoogleMap map, InputStream stream, Context context, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager, Renderer.ImagesCache cache, KmlUrlSanitizer urlSanitizer)
        Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
        Parameters:
        map - GoogleMap object
        stream - InputStream containing KML or KMZ file
        context - The Context
        markerManager - marker manager to create marker collection from
        polygonManager - polygon manager to create polygon collection from
        polylineManager - polyline manager to create polyline collection from
        groundOverlayManager - ground overlay manager to create ground overlay collection from
        cache - cache to be used for fetched images
        urlSanitizer - sanitizer to be used for external URLs
      • KmlLayer

        KmlLayer(GoogleMap map, InputStream stream, Context context, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager, Renderer.ImagesCache cache, KmlUrlSanitizer urlSanitizer, int maxKmzEntryCount, long maxKmzUncompressedTotalSize)
        Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
        Parameters:
        map - GoogleMap object
        stream - InputStream containing KML or KMZ file
        context - The Context
        markerManager - marker manager to create marker collection from
        polygonManager - polygon manager to create polygon collection from
        polylineManager - polyline manager to create polyline collection from
        groundOverlayManager - ground overlay manager to create ground overlay collection from
        cache - cache to be used for fetched images
        urlSanitizer - sanitizer to be used for external URLs
        maxKmzEntryCount - The maximum number of entries a KMZ file can contain.
        maxKmzUncompressedTotalSize - The maximum size of the uncompressed KMZ file in bytes.