示例#1
0
  /**
   * APIMethod: getControl
   *
   * <p>Parameters: id - {String} ID of the control to return.
   *
   * <p>Returns: {<OpenLayers.Control>} The control from the map's list of controls which has a
   * matching 'id'. If none found, returns null.
   */
  public Control getControl(String controlID) {
    JSObject jsObject = MapImpl.getControl(getJSObject(), controlID);

    return (jsObject != null) ? Control.narrowToControl(jsObject) : null;
  }
示例#2
0
 public Control getControlsByClass(String className) {
   JSObject jsObject = MapImpl.getControlsByClass(getJSObject(), className);
   return Control.narrowToControl(jsObject);
 }