org.gwtopenmaps.openlayers.client.control.DrawFeatureOptions Maven / Gradle / Ivy
/**
*
*/
package org.gwtopenmaps.openlayers.client.control;
import org.gwtopenmaps.openlayers.client.control.DrawFeature.FeatureAddedListener;
import org.gwtopenmaps.openlayers.client.handler.HandlerOptions;
import org.gwtopenmaps.openlayers.client.util.JSObject;
/**
* @author Edwin Commandeur - Atlis EJS
*
*/
public class DrawFeatureOptions extends ControlOptions {
public void onFeatureAdded(FeatureAddedListener listener){
JSObject callback = DrawFeatureImpl.createFeatureAddedCallback(listener);
getJSObject().setProperty("featureAdded", callback);
}
public void setHandlerOptions(HandlerOptions handlerOptions){
getJSObject().setProperty("handlerOptions", handlerOptions.getJSObject());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy