|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.layers.KmlLayer
public class KmlLayer
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. This class extends MVCObject.
See KmlLayer API Doc
Constructor Summary | |
---|---|
protected |
KmlLayer()
use newInstance(); |
Method Summary | |
---|---|
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. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected KmlLayer()
Method Detail |
---|
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()
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |