org.gwtopenmaps.openlayers.client.format.GML3Options Maven / Gradle / Ivy
package org.gwtopenmaps.openlayers.client.format;
import org.gwtopenmaps.openlayers.client.util.JSObject;
import org.gwtopenmaps.openlayers.client.util.JSObjectWrapper;
/**
* Properties to be initialized for any GML3 by passing this object to the constructor
*
* @author Mikael Couzic
*/
public class GML3Options extends JSObjectWrapper {
protected GML3Options(JSObject jsObject) {
super(jsObject);
}
/**
* There is no no-argument constructor for this class.
* The unique constructor takes arguments that are absolutely required for the GML parser to work.
* @param featureNS
* Feature namespace. For example : "http://www.openplans.org/topp"
* @param featureType
* Local (without prefix) feature typeName. For example : "states"
* @author Mikael Couzic
*/
public GML3Options(String featureNS, String featureType){
this(JSObject.createJSObject());
setFeatureNS(featureNS);
setFeatureType(featureType);
}
public void setFeatureNS(String featureNS) {
getJSObject().setProperty("featureNS", featureNS);
}
public void setFeatureType(String featureType) {
getJSObject().setProperty("featureType", featureType);
}
public void setGeometryName(String geometryName) {
getJSObject().setProperty("geometryName", geometryName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy