All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gwtopenmaps.openlayers.client.control.MeasureOptions Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
/**
 *
 */
package org.gwtopenmaps.openlayers.client.control;

import org.gwtopenmaps.openlayers.client.handler.HandlerOptions;



/**
 * @author Michel Vitor A Rodrigues - Intec
 *
 */
public class MeasureOptions extends ControlOptions{

	/**
	 * Keep the temporary measure sketch or not.
	 *
	 * @param 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.
	 */
	public void setPersist(boolean persist){
		getJSObject().setProperty("persist", persist);
	}

	/**
	 * Set non-default handler options. An example is setting a {@link org.gwtopenmaps.openlayers.client.StyleMap}.
	 * 
	 *
	 * control.setHandlerOptions(new BaseGeometryHandlerOptions()
	 *   .setLayerOptions(new HandlerLayerOptions().setStyleMap(styleMap)))
	 *
	 * 
* * @param options - {@link org.gwtopenmaps.openlayers.client.handler.BaseGeometryHandlerOptions} or a subclass */ public void setHandlerOptions(HandlerOptions options){ getJSObject().setProperty("handlerOptions", options.getJSObject()); } /** * 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. */ public void setGeodesic(boolean geodesic){ getJSObject().setProperty("geodesic", geodesic); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy