Kml Layer
Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map. Constructor may be called on a background thread, as I/O and parsing may be long-running.
Parameters
GoogleMap object
Raw resource KML or KMZ file
The Context
Throws
if file cannot be parsed
if I/O error
Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map. Constructor may be called on a background thread, as I/O and parsing may be long-running.
Parameters
GoogleMap object
InputStream containing KML or KMZ file
The Context
Throws
if file cannot be parsed
if I/O error
Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map. Constructor may be called on a background thread, as I/O and parsing may be long-running. Use this constructor with shared object managers in order to handle multiple layers with their own event handlers on the map.
Parameters
GoogleMap object
Raw resource KML or KMZ file
The Context
marker manager to create marker collection from
polygon manager to create polygon collection from
polyline manager to create polyline collection from
ground overlay manager to create ground overlay collection from
cache to be used for fetched images
Throws
if file cannot be parsed
if I/O error
Creates a new KmlLayer object - addLayerToMap() must be called to trigger rendering onto a map. Constructor may be called on a background thread, as I/O and parsing may be long-running. Use this constructor with shared object managers in order to handle multiple layers with their own event handlers on the map.
Parameters
GoogleMap object
InputStream containing KML or KMZ file
The Context
marker manager to create marker collection from
polygon manager to create polygon collection from
polyline manager to create polyline collection from
ground overlay manager to create ground overlay collection from
cache to be used for fetched images
Throws
if file cannot be parsed
if I/O error