public VectorFeature(Geometry g) { super(VectorFeatureImpl.create(g.getJSObject())); }
public String getRenderIntent() { return VectorFeatureImpl.getRenderIntent(getJSObject()); }
/** * Determine whether the feature is displayed or not * */ public boolean getVisibility() { return VectorFeatureImpl.getVisibility(getJSObject()); }
/** * Set the featureId on VectoreFeauture. Remember the featureId must be * unique * * @param feaureID */ public void setFeatureId(String feaureID) { VectorFeatureImpl.setFeatureId(getJSObject(), feaureID); }
public void setFID(String fid) { VectorFeatureImpl.setFID(getJSObject(), fid); }
/** * Create a clone of this vector feature. Does not set any non-standard * properties. */ public VectorFeature clone() { return narrowToVectorFeature(VectorFeatureImpl.clone(getJSObject())); }
/** * Moves the feature and redraws it at its new location. * * @param lonLat the location to which to move the feature */ public void move(LonLat lonLat) { VectorFeatureImpl.move(getJSObject(), lonLat.getJSObject()); }
/** * Gets the state of the feature. * * @return The state of the feature. */ public State getState() { return State.fromString(VectorFeatureImpl.getState(getJSObject())); } }
public boolean redrawParent() { return VectorFeatureImpl.redraw(getLayer().getJSObject(), true); }
/** * Get the clustered features in this vector feature. If clustering isn't * used returns null. * * @return the clustered features or null if clustering isn't used */ public VectorFeature[] getCluster() { JSObject jsObjects = VectorFeatureImpl.getCluster(getJSObject()); JObjectArray jObjectArray = JObjectArray.narrowToJObjectArray(jsObjects); // Should be null if this is not a cluster if (jObjectArray == null) { return null; } VectorFeature[] features = new VectorFeature[jObjectArray.length()]; for (int i = 0; i < jObjectArray.length(); i++) { features[i] = VectorFeature.narrowToVectorFeature( jObjectArray.get(i)); } return features; }
public VectorFeature(Geometry g) { super(VectorFeatureImpl.create(g.getJSObject())); }
public VectorFeature(Geometry g, Style s) { super(VectorFeatureImpl.create(g.getJSObject(), s.getJSObject())); }
public VectorFeature(Geometry g, Style s) { super(VectorFeatureImpl.create(g.getJSObject(), s.getJSObject())); }