public class KmlLayer extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
KmlLayer()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addClickHandler(KmlMouseMapHandler handler)
This event is fired when a feature in the layer is clicked.
|
HandlerRegistration |
addDefaultViewportChangeHandler(DefaultViewportChangeMapHandler handler)
This event is fired when the KML layers default viewport has changed.
|
void |
close()
erase kml layer
|
LatLngBounds |
getDefaultViewport()
Get the default viewport for the layer being displayed.
|
MapWidget |
getMap()
Get the map on which the KML Layer is being rendered.
|
KmlLayerMetadata |
getMetadata()
Get the metadata associated with this layer, as specified in the layer markup.
|
String |
getUrl()
Get the URL of the geographic markup which is being displayed.
|
static KmlLayer |
newInstance(String url)
Creates a KmlLayer which renders the contents of the specified KML/KMZ file (KML API Doc) or GeoRSS file (GeoRSS API Doc).
|
static KmlLayer |
newInstance(String url,
KmlLayerOptions options)
Creates a KmlLayer which renders the contents of the specified KML/KMZ file (KML API Doc) or GeoRSS file (GeoRSS API Doc).
|
void |
setMap(MapWidget mapWidget)
Renders the KML Layer on the specified map.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final KmlLayer newInstance(String url, KmlLayerOptions options)
url
- options
- KmlLayerOptions
KmlLayerOptions
public static final KmlLayer newInstance(String url)
url
- public final LatLngBounds getDefaultViewport()
public final void setMap(MapWidget mapWidget)
mapWidget
- public final MapWidget getMap()
public final KmlLayerMetadata getMetadata()
public final String getUrl()
public final HandlerRegistration addClickHandler(KmlMouseMapHandler handler)
handler
- public final HandlerRegistration addDefaultViewportChangeHandler(DefaultViewportChangeMapHandler handler)
handler
- public final void close()
Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.