new GetFeatureInfo(options)
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object |
control options
|
Extends
- ol.control.Control
Methods
-
getLayers(){Array.<Object>}
OpenLayers/Controls/GetFeatureInfo.js, line 289 -
Gets the list of layers already added to the map and attached to the control.
Returns:
Name Type Description gfiLayers Array.<Object> List of layers. Name Type Description obj ol.layer.Layer ol.layer.Layer layer handled by the control (that has been added to map). event String Optional. Name of the mouse event triggering getFeatureInfo on this layer (that has been added to map). allowed values are : 'singleclick', 'dblclick' and 'contextmenu'. infoFormat String Optional. Indicates the format mime-type of the response of GetFeatureInfo requests. -
isActive(){Boolean}
OpenLayers/Controls/GetFeatureInfo.js, line 372 -
Gets active control property
-
isHidden(){Boolean}
OpenLayers/Controls/GetFeatureInfo.js, line 390 -
Indicates if the widget is hidden
Returns:
hidden
-
setActive(active)
OpenLayers/Controls/GetFeatureInfo.js, line 338 -
Sets active control property
Name Type Description active Boolean specify the value the active property must be set to.
-
setCursorStyle(cursorStyle)
OpenLayers/Controls/GetFeatureInfo.js, line 318 -
Sets the cursor style when hovering vector layers features.
Name Type Description cursorStyle String cursor style. The value must be choosen in the possible values of the css cursor property.
-
setDefaultEvent(eventName)
OpenLayers/Controls/GetFeatureInfo.js, line 299 -
Sets the default event applied to layer with no triggering event configured.
This can be set on run time.Name Type Description eventName String name of the mouse event chosen in the list : 'singleclick', 'dblclick', 'contextmenu'.
-
setHidden(hidden)
OpenLayers/Controls/GetFeatureInfo.js, line 381 -
Hides/displays widget
Name Type Description hidden Boolean specify if the widget must be hidden
-
setLayers(gfiLayers)
OpenLayers/Controls/GetFeatureInfo.js, line 402 -
Set the layers list the control is attached to. Listened events are updated according to this list.
Name Type Description gfiLayers Array.<Object> list of layers which can be requested through the control.
Name Type Description obj ol.layer.Layer ol.layer.Layer layer handled by the control (that has been added to map).
event String optional Name of the mouse event triggering getFeatureInfo on this layer (that has been added to map). allowed values are : 'singleclick', 'dblclick' and 'contextmenu'.
infoFormat String optional Indicates the format mime-type of the response of GetFeatureInfo requests.
-
setMap(map)
OpenLayers/Controls/GetFeatureInfo.js, line 216 -
Binds map to control.
Name Type Description map ol.Map Map.