Follow us on GitHub

com.google.gwt.maps.client.layers
Class KmlLayerOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.layers.KmlLayerOptions

public class KmlLayerOptions
extends JavaScriptObject

This object defines the properties that can be set on a KmlLayer object.

See KmlLayerOptions API Doc


Constructor Summary
protected KmlLayerOptions()
          use newInstance();
 
Method Summary
 boolean getClickable()
          If true, the layer receives mouse events.
 MapWidget getMap()
          Get the map on which the KML Layer is being rendered.
 boolean getPreserveViewport()
          By default, the input map is centered and zoomed to the bounding box of the contents of the layer.
 boolean getSuppressInfoWindows()
          Suppress the rendering of info windows when layer features are clicked.
static KmlLayerOptions newInstance()
          This object defines the properties that can be set on a KmlLayer object.
 void setClickable(boolean clickable)
          If true, the layer receives mouse events.
 void setMap(MapWidget mapWidget)
          Renders the KML Layer on the specified map.
 void setPreserveViewport(boolean preserveViewport)
          By default, the input map is centered and zoomed to the bounding box of the contents of the layer.
 void setSuppressInfoWindows(boolean suppressInfoWindows)
          Suppress the rendering of info windows when layer features are clicked.
 
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

KmlLayerOptions

protected KmlLayerOptions()
use newInstance();

Method Detail

newInstance

public static final KmlLayerOptions newInstance()
This object defines the properties that can be set on a KmlLayer object.


setClickable

public final void setClickable(boolean clickable)
If true, the layer receives mouse events. Default value is true.

Parameters:
clickable -

getClickable

public final boolean getClickable()
If true, the layer receives mouse events. Default value is true.


setMap

public final void setMap(MapWidget mapWidget)
Renders the KML Layer on the specified map. If map is set to null, the layer is removed.

Parameters:
mapWidget -

getMap

public final MapWidget getMap()
Get the map on which the KML Layer is being rendered.


setPreserveViewport

public final void setPreserveViewport(boolean preserveViewport)
By default, the input map is centered and zoomed to the bounding box of the contents of the layer. If this option is set to true, the viewport is left unchanged, unless the map's center and zoom were never set.

Parameters:
preserveViewport -

getPreserveViewport

public final boolean getPreserveViewport()
By default, the input map is centered and zoomed to the bounding box of the contents of the layer. If this option is set to true, the viewport is left unchanged, unless the map's center and zoom were never set.


setSuppressInfoWindows

public final void setSuppressInfoWindows(boolean suppressInfoWindows)
Suppress the rendering of info windows when layer features are clicked.

Parameters:
suppressInfoWindows -

getSuppressInfoWindows

public final boolean getSuppressInfoWindows()
Suppress the rendering of info windows when layer features are clicked.



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.