/** * 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); } }
/** * 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 <cancel> is called. * Default is false. */ public void setPersist(boolean persist) { getJSObject().setProperty("persist", persist); }
/** * 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 <cancel> is called. * Default is false. */ public void setPersist(boolean persist){ getJSObject().setProperty("persist", persist); }
public Measure(Handler handler, MeasureOptions options) { this(MeasureImpl.create(handler.getJSObject(), options.getJSObject())); }
public Measure(Handler handler, MeasureOptions options) { this(MeasureImpl.create(handler.getJSObject(),options.getJSObject())); }
/** * Set non-default handler options. An example is setting a {@link org.gwtopenmaps.openlayers.client.StyleMap}. * <pre> * * control.setHandlerOptions(new BaseGeometryHandlerOptions() * .setLayerOptions(new HandlerLayerOptions().setStyleMap(styleMap))) * * </pre> * * @param options - {@link org.gwtopenmaps.openlayers.client.handler.BaseGeometryHandlerOptions} or a subclass */ public void setHandlerOptions(HandlerOptions options){ getJSObject().setProperty("handlerOptions", options.getJSObject()); } }
/** * Set non-default handler options. An example is setting a {@link org.gwtopenmaps.openlayers.client.StyleMap}. * <pre> * * control.setHandlerOptions(new BaseGeometryHandlerOptions() * .setLayerOptions(new HandlerLayerOptions().setStyleMap(styleMap))) * * </pre> * * @param options - {@link org.gwtopenmaps.openlayers.client.handler.BaseGeometryHandlerOptions} or a subclass */ public void setHandlerOptions(HandlerOptions options) { getJSObject().setProperty("handlerOptions", options.getJSObject()); }