A KmlLayer
adds geographic markup to the map from a KML, KMZ
or GeoRSS file that is hosted on a publicly accessible web server. A
KmlFeatureData
object is provided for each feature when
clicked.
Access by calling const {KmlLayer} = await google.maps.importLibrary("maps")
. See
https://developers.google.com/maps/documentation/javascript/libraries.
Options for this layer.
Adds the given listener function to the given event name. Returns an
identifier for this listener that can be used with
google.maps.event.removeListener
.
Binds a View to a Model.
Gets a value.
Get the default viewport for the layer being displayed.
Get the map on which the KML Layer is being rendered.
Get the metadata associated with this layer, as specified in the layer markup.
Get the status of the layer, set once the requested document has loaded.
Gets the URL of the KML file being displayed.
Gets the z-index of the KML Layer.
Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.
Sets a value.
Renders the KML Layer on the specified map. If map is set to
null
, the layer is removed.
Sets the URL of the KML file to display.
Sets a collection of key-value pairs.
Sets the z-index of the KML Layer.
The z-index to set.
Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.
Removes all bindings.
Generated using TypeDoc
A
KmlLayer
adds geographic markup to the map from a KML, KMZ or GeoRSS file that is hosted on a publicly accessible web server. AKmlFeatureData
object is provided for each feature when clicked.Access by calling
const {KmlLayer} = await google.maps.importLibrary("maps")
. See https://developers.google.com/maps/documentation/javascript/libraries.