org.gwtopenmaps.openlayers.client.control
Class MeasureOptions
java.lang.Object
org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
org.gwtopenmaps.openlayers.client.control.ControlOptions
org.gwtopenmaps.openlayers.client.control.MeasureOptions
public class MeasureOptions
- extends ControlOptions
- Author:
- Michel Vitor A Rodrigues - Intec
Method Summary |
void |
setGeodesic(boolean geodesic)
Property: geodesic
{Boolean} Calculate geodesic metrics instead of planar metrics. |
void |
setHandlerOptions(HandlerOptions options)
Set non-default handler options. |
void |
setPersist(boolean persist)
Keep the temporary measure sketch or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeasureOptions
public MeasureOptions()
setPersist
public void setPersist(boolean persist)
- Keep the temporary measure sketch or not.
- Parameters:
persist
- - Set to true to keep the temporary measurement sketch drawn after
the measurement is complete. The geometry will persist until a new
measurement is started, the control is deactivated, or is called.
Default is false.
setHandlerOptions
public void setHandlerOptions(HandlerOptions options)
- Set non-default handler options. An example is setting a
StyleMap
.
control.setHandlerOptions(new BaseGeometryHandlerOptions()
.setLayerOptions(new HandlerLayerOptions().setStyleMap(styleMap)))
- Parameters:
options
- - BaseGeometryHandlerOptions
or a subclass
setGeodesic
public void setGeodesic(boolean geodesic)
- Property: geodesic
{Boolean} Calculate geodesic metrics instead of planar metrics. This
requires that geometries can be transformed into Geographic/WGS84
(if that is not already the map projection). Default is false.
Copyright © 2011 sourceforge. All Rights Reserved.