public class KmlLayer extends Layer
Layer.OnFeatureClickListener| Constructor and Description |
|---|
KmlLayer(GoogleMap map,
java.io.InputStream stream,
android.content.Context context)
Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
|
KmlLayer(GoogleMap map,
java.io.InputStream stream,
android.content.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,
android.content.Context context)
Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map.
|
KmlLayer(GoogleMap map,
int resourceId,
android.content.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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayerToMap()
Adds the KML data to the map - must be called on the main UI thread
|
java.lang.Iterable<KmlContainer> |
getContainers()
Gets an iterable of KmlContainerInterface objects
|
java.lang.Iterable<KmlGroundOverlay> |
getGroundOverlays()
Gets an iterable of KmlGroundOverlay objects
|
java.lang.Iterable<KmlPlacemark> |
getPlacemarks()
Gets an iterable of KmlPlacemark objects
|
boolean |
hasContainers()
Checks if the layer contains any KmlContainers
|
boolean |
hasPlacemarks()
Checks if the layer contains placemarks
|
addFeature, addGeoJsonToMap, addKMLToMap, getContainerFeature, getDefaultLineStringStyle, getDefaultPointStyle, getDefaultPolygonStyle, getFeature, getFeatures, getMap, hasFeatures, isLayerOnMap, removeFeature, removeLayerFromMap, setMap, setOnFeatureClickListener, storeRendererpublic KmlLayer(GoogleMap map,
int resourceId,
android.content.Context context)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
map - GoogleMap objectresourceId - Raw resource KML or KMZ filecontext - The Contextorg.xmlpull.v1.XmlPullParserException - if file cannot be parsedjava.io.IOException - if I/O errorpublic KmlLayer(GoogleMap map,
java.io.InputStream stream,
android.content.Context context)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
map - GoogleMap objectstream - InputStream containing KML or KMZ filecontext - The Contextorg.xmlpull.v1.XmlPullParserException - if file cannot be parsedjava.io.IOException - if I/O errorpublic KmlLayer(GoogleMap map,
int resourceId,
android.content.Context context,
MarkerManager markerManager,
PolygonManager polygonManager,
PolylineManager polylineManager,
GroundOverlayManager groundOverlayManager,
Renderer.ImagesCache cache)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
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 imagesorg.xmlpull.v1.XmlPullParserException - if file cannot be parsedjava.io.IOException - if I/O errorpublic KmlLayer(GoogleMap map,
java.io.InputStream stream,
android.content.Context context,
MarkerManager markerManager,
PolygonManager polygonManager,
PolylineManager polylineManager,
GroundOverlayManager groundOverlayManager,
Renderer.ImagesCache cache)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
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 imagesorg.xmlpull.v1.XmlPullParserException - if file cannot be parsedjava.io.IOException - if I/O errorpublic void addLayerToMap()
addLayerToMap in class Layerpublic boolean hasPlacemarks()
public java.lang.Iterable<KmlPlacemark> getPlacemarks()
public boolean hasContainers()
hasContainers in class Layerpublic java.lang.Iterable<KmlContainer> getContainers()
getContainers in class Layerpublic java.lang.Iterable<KmlGroundOverlay> getGroundOverlays()
getGroundOverlays in class Layer