-
-
Constructor Summary
Constructors Constructor Description KmlLayer(GoogleMap map, int resourceId, Context context)Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map. 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. KmlLayer(GoogleMap map, InputStream stream, Context context)Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map. 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. 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. 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. 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. 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. 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. 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.
-
Method Summary
Modifier and Type Method Description voidaddLayerToMap()Adds the KML data to the map - must be called on the main UI thread booleanhasPlacemarks()Checks if the layer contains placemarks Iterable<KmlPlacemark>getPlacemarks()Gets an iterable of KmlPlacemark objects booleanhasContainers()Checks if the layer contains any KmlContainers Iterable<KmlContainer>getContainers()Gets an iterable of KmlContainerInterface objects Iterable<KmlGroundOverlay>getGroundOverlays()Gets an iterable of KmlGroundOverlay objects -
Methods inherited from class com.google.maps.android.data.Layer
getContainerFeature, getDefaultLineStringStyle, getDefaultPointStyle, getDefaultPolygonStyle, getFeature, getFeatures, getMap, isLayerOnMap, removeLayerFromMap, setMap, setOnFeatureClickListener -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
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 objectresourceId- Raw resource KML or KMZ filecontext- 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 objectresourceId- Raw resource KML or KMZ filecontext- The ContextmaxKmzEntryCount- 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 objectstream- InputStream containing KML or KMZ filecontext- 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 objectstream- InputStream containing KML or KMZ filecontext- The ContextmaxKmzEntryCount- 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 objectresourceId- Raw resource KML or KMZ filecontext- The ContextmarkerManager- marker manager to create marker collection frompolygonManager- polygon manager to create polygon collection frompolylineManager- polyline manager to create polyline collection fromgroundOverlayManager- ground overlay manager to create ground overlay collection fromcache- 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 objectresourceId- Raw resource KML or KMZ filecontext- The ContextmarkerManager- marker manager to create marker collection frompolygonManager- polygon manager to create polygon collection frompolylineManager- polyline manager to create polyline collection fromgroundOverlayManager- ground overlay manager to create ground overlay collection fromcache- cache to be used for fetched imagesmaxKmzEntryCount- 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 objectstream- InputStream containing KML or KMZ filecontext- The ContextmarkerManager- marker manager to create marker collection frompolygonManager- polygon manager to create polygon collection frompolylineManager- polyline manager to create polyline collection fromgroundOverlayManager- ground overlay manager to create ground overlay collection fromcache- 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 objectstream- InputStream containing KML or KMZ filecontext- The ContextmarkerManager- marker manager to create marker collection frompolygonManager- polygon manager to create polygon collection frompolylineManager- polyline manager to create polyline collection fromgroundOverlayManager- ground overlay manager to create ground overlay collection fromcache- cache to be used for fetched imagesmaxKmzEntryCount- 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 objectstream- InputStream containing KML or KMZ filecontext- The ContextmarkerManager- marker manager to create marker collection frompolygonManager- polygon manager to create polygon collection frompolylineManager- polyline manager to create polyline collection fromgroundOverlayManager- ground overlay manager to create ground overlay collection fromcache- cache to be used for fetched imagesurlSanitizer- 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 objectstream- InputStream containing KML or KMZ filecontext- The ContextmarkerManager- marker manager to create marker collection frompolygonManager- polygon manager to create polygon collection frompolylineManager- polyline manager to create polyline collection fromgroundOverlayManager- ground overlay manager to create ground overlay collection fromcache- cache to be used for fetched imagesurlSanitizer- sanitizer to be used for external URLsmaxKmzEntryCount- The maximum number of entries a KMZ file can contain.maxKmzUncompressedTotalSize- The maximum size of the uncompressed KMZ file in bytes.
-
-
Method Detail
-
addLayerToMap
void addLayerToMap()
Adds the KML data to the map - must be called on the main UI thread
-
hasPlacemarks
boolean hasPlacemarks()
Checks if the layer contains placemarks
-
getPlacemarks
Iterable<KmlPlacemark> getPlacemarks()
Gets an iterable of KmlPlacemark objects
-
hasContainers
boolean hasContainers()
Checks if the layer contains any KmlContainers
-
getContainers
Iterable<KmlContainer> getContainers()
Gets an iterable of KmlContainerInterface objects
-
getGroundOverlays
Iterable<KmlGroundOverlay> getGroundOverlays()
Gets an iterable of KmlGroundOverlay objects
-
-
-
-