/** * @return a generated ID. Prefer the use of <code>getFID</code>, which supports an OGC standard. */ public String getFeatureId(){ return FeatureImpl.getFeatureId(getJSObject()); }
/** * @return a generated ID. Prefer the use of <code>getFID</code>, which * supports an OGC standard. */ public String getFeatureId() { return FeatureImpl.getFeatureId(getJSObject()); }
public String getFID(){ return FeatureImpl.getFID(getJSObject()); }
public void resetPopup() { FeatureImpl.resetPopup(this.getJSObject()); }
public void destroy(){ FeatureImpl.destroy(getJSObject()); }
public String write(Feature features, boolean pretty) { return KMLImpl.write(this.getJSObject(), features.getJSObject(), pretty); }
public void setStyle(Style newStyle) { FeatureImpl.setStyle(this.getJSObject(), newStyle.getJSObject()); } }
/** * evaluates this rule for a specific feature * @param feature feature to apply the rule to * @return true if the rule applies, false if it does not. This rule is the default rule and always returns true. */ public boolean evaluate(Feature feature) { return RuleImpl.evaluate(this.getJSObject(), feature.getJSObject()); }
public String write(Feature features, boolean pretty) { return KMLImpl.write(this.getJSObject(), features.getJSObject(), pretty); } }
public Popup createPopup(boolean closeBox) { JSObject popupObj = FeatureImpl.createPopup(this.getJSObject(), closeBox); return Popup.narrowToOpenLayersPopup(popupObj); }
public Style getStyle() { return Style.narrowToOpenLayersStyle(FeatureImpl.getStyle( this.getJSObject())); }
public Popup createPopup(boolean closeBox) { JSObject popupObj = FeatureImpl.createPopup(this.getJSObject(), closeBox); return Popup.narrowToOpenLayersPopup(popupObj); }
public void setPopup(final Popup popup) { FeatureImpl.setPopup(this.getJSObject(), popup == null ? null : popup.getJSObject()); }
public Popup getPopup() { return Popup.narrowToOpenLayersPopup(FeatureImpl.getPopup( this.getJSObject())); }
public Layer getLayer() { return Layer.narrowToLayer(FeatureImpl.getLayer(getJSObject())); } }
public void setPopup(Popup popup) { FeatureImpl.setPopup(this.getJSObject(), popup.getJSObject()); }
public Popup getPopup() { return Popup.narrowToOpenLayersPopup(FeatureImpl.getPopup(this.getJSObject())); }
public LonLat getCenterLonLat() { return Bounds.narrowToBounds(FeatureImpl.getBounds(this.getJSObject())).getCenterLonLat(); }
public LonLat getCenterLonLat() { return Bounds.narrowToBounds(FeatureImpl.getBounds(this.getJSObject())).getCenterLonLat(); }
/** * Tell the layer protocol which features should be saved * * @param features array of features */ public void save(Feature[] features) { JSObject[] jsObjects = new JSObject[features.length]; for (int i = 0; i < features.length; i++) { jsObjects[i] = features[i].getJSObject(); } JObjectArray array = new JObjectArray(jsObjects); SaveStrategyImpl.save(this.getJSObject(), array.getJSObject()); } }