new GetFeatureInfo(options)
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object |
control options
|
Extends
- ol.control.Control
Methods
-
getLayers(){Array.<Object>}
OpenLayers/Controls/GetFeatureInfo.js, line 298 -
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 381 -
Gets active control property
-
isHidden(){Boolean}
OpenLayers/Controls/GetFeatureInfo.js, line 399 -
Indicates if the widget is hidden
Returns:
hidden
-
setActive(active)
OpenLayers/Controls/GetFeatureInfo.js, line 347 -
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 327 -
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 308 -
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 390 -
Hides/displays widget
Name Type Description hidden Boolean specify if the widget must be hidden
-
setLayers(gfiLayers)
OpenLayers/Controls/GetFeatureInfo.js, line 411 -
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 225 -
Binds map to control.
Name Type Description map ol.Map Map.