org.gwtopenmaps.openlayers.client.control
Class MeasureOptions

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
              extended by org.gwtopenmaps.openlayers.client.control.ControlOptions
                  extended by org.gwtopenmaps.openlayers.client.control.MeasureOptions

public class MeasureOptions
extends ControlOptions

Author:
Michel Vitor A Rodrigues - Intec

Field Summary
 
Fields inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
eventListeners
 
Constructor Summary
MeasureOptions()
           
 
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 org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
getListeners, narrowToOpenLayersEObjectWrapper, removeListener
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
getClassName, getEvents, narrowToOpenLayersObjectWrapper
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeasureOptions

public MeasureOptions()
Method Detail

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.