new GetFeatureInfo(options)
Controls/GetFeatureInfo/GetFeatureInfo.js, line 40
Name | Type | Description |
---|---|---|
options | Object |
options for function call. |
Fires:
- custom:action
Example
var getFeatureInfo = new ol.control.GetFeatureInfo();
map.addControl(getFeatureInfo);
Extends
- ol.control.Control
Members
-
auto
-
{Boolean} specify if control add some stuff auto
-
collapsed
-
{Boolean} specify if control is collapsed (true) or not (false)
-
draggable
-
{Boolean} specify if control is draggable (true) or not (false)
-
eventsListeners
-
{Array} specify some events listeners
-
pixel
-
GFI settings
Methods
-
features2html(features){HTMLElement}
Controls/GetFeatureInfo/GetFeatureInfo.js, line 547 -
Gets HTML content from features array
Name Type Description features Array.<ol.Features> openlayers features Array
Returns:
content.
-
getLayerFormat(l){String}
Controls/GetFeatureInfo/GetFeatureInfo.js, line 508 -
Return layer format
Name Type Description l ol.layer.Layer layer openlayers
Returns:
- layer format can be wms, wmts, vector or unknown
-
getLayerTitle(gfiLayer){String}
Controls/GetFeatureInfo/GetFeatureInfo.js, line 430 -
Get layer title
Name Type Description gfiLayer Object the layer object used by the gfi widget
Returns:
- layer title
-
onCloseGetFeatureInfoClick(e)
Controls/GetFeatureInfo/GetFeatureInfo.js, line 658 -
...
Name Type Description e * ...
-
onGetFeatureInfoComputationSubmit(e)
Controls/GetFeatureInfo/GetFeatureInfo.js, line 666 -
...
Name Type Description e * ...
-
onShowGetFeatureInfoClick(e)
Controls/GetFeatureInfo/GetFeatureInfo.js, line 642 -
...
Name Type Description e * ...
-
setMap(map)
Controls/GetFeatureInfo/GetFeatureInfo.js, line 86 -
Overwrite OpenLayers setMap method
Name Type Description map ol.Map Map.