M/control/GetFeatureInfo~GetFeatureInfo


import GetFeatureInfo from 'M/control/GetFeatureInfo';

new GetFeatureInfo(format, options)

facade/js/control/GetFeatureInfo.js, line 25
Name Type Description
format string

Format response

options object

Control options

Extends

  • M.Control

Members

module:M/control/GetFeatureInfo~GetFeatureInfo.NAME{string}

Name to identify this control

module:M/control/GetFeatureInfo~GetFeatureInfo.POPUP_TITLE{string}

Title for the popup

format{string}

User format

Methods

createView(map){Promise}

facade/js/control/GetFeatureInfo.js, line 54

This function creates the view to the specified map

Name Type Description
map M.Map

Facade map

Returns:
HTML template

equals(obj){boolean}

facade/js/control/GetFeatureInfo.js, line 86

This function checks if an object is equals to this control

Name Type Description
obj *

Object to compare

Returns:
equals - Returns if they are equal or not

getActivationButton(element){HTMLElement}

facade/js/control/GetFeatureInfo.js, line 72

This function returns the HTML button control.

Name Type Description
element HTMLElement

Template control

Returns:
HTML control button