/** * Enable the Control * */ public void enable() { ControlImpl.enable(getJSObject()); }
/** * Give the Control ID * * @return control id */ public String getControlId() { return ControlImpl.getControlId(getJSObject()); }
/** * {Boolean} If true, position will be update regularly. * * @param watch */ public void setWatch(boolean watch) { super.getJSObject().setProperty("watch", watch); }
/** * Disable Control * */ public void disable() { ControlImpl.disable(getJSObject()); }
/** * {Boolean} If true, map center will be set on location update. * * @param bind */ public void setBind(boolean bind) { super.getJSObject().setProperty("bind", bind); }
public void destroy() { ControlImpl.destroy(getJSObject()); }
public boolean activate() { return ControlImpl.activate(getJSObject()); }
public boolean deactivate() { return ControlImpl.deactivate(getJSObject()); }
public void setAutoActivate(boolean autoActivate) { getJSObject().setProperty("autoActivate", autoActivate); }
public boolean isActive() { return ControlImpl.isActive(getJSObject()); }
public String getZIndex() { return ControlImpl.getZIndex(getJSObject()); }
/** * get the map to which this control is attached * * @return the map */ public Map getMap() { return Map.narrowToMap(this.getJSObject().getProperty("map")); }
public void setDefaultControl(Control defaultControl) { getJSObject().setProperty("defaultControl", defaultControl.getJSObject()); } }
/** * get the map to which this control is attached * * @return the map */ public Map getMap() { return Map.narrowToMap(this.getJSObject().getProperty("map")); }
public void setDefaultControl(Control defaultControl){ getJSObject().setProperty("defaultControl", defaultControl.getJSObject()); } }
/** * * @return Vector on which features are drawn */ public Vector getLayer() { return Vector.narrowToLayer(ControlImpl.getLayer(getJSObject())); }
public void removeControl(Control control) { MapImpl.removeControl(getJSObject(), control.getJSObject()); }
public void addControl(Control control) { MapImpl.addControl(getJSObject(), control.getJSObject()); }
public void removeControl(Control control) { MapImpl.removeControl(getJSObject(), control.getJSObject()); }
public void addControl(Control control) { MapImpl.addControl(getJSObject(), control.getJSObject()); }