Class: GetFeatureInfo

GetFeatureInfo

Main constructor of the class. Creates a GetFeatureInfo
control to provides a popup with information about the place
where the user has clicked inside the map


new GetFeatureInfo(format, options)

Parameters:
Name Type Description
format string

Format response

options object

Control options

Source:

Extends

Members


<static, constant> NAME :string

Name to identify this control

Type:
  • string
Source:

<static, constant> POPUP_TEMPLATE :string

Template for this controls - popup

Type:
  • string
Source:

<static, constant> POPUP_TITLE :string

Title for the popup

Type:
  • string
Source:

<static, constant> TEMPLATE :string

Template for this controls - button

Type:
  • string
Source:

activated :boolean

Type:
  • boolean
Inherited From:
Source:

name :string

Type:
  • string
Inherited From:
Source:

Methods


activate()

function adds the event 'click'

Inherited From:
Source:

addTo(map)

This function adds the control to the specified map

Parameters:
Name Type Description
map M.Map

to add the plugin

Inherited From:
Source:

createView(map)

This function creates the view to the specified map

Parameters:
Name Type Description
map M.Map

Facade map

Overrides:
Source:
Returns:

HTML template

Type
Promise

deactivate()

function remove the event 'click'

Inherited From:
Source:

destroy()

Destroys the control

Inherited From:
Source:

equals(obj)

This function checks if an object is equals
to this control

Parameters:
Name Type Description
obj *

Object to compare

Source:
Returns:

equals - Returns if they are equal or not

Type
boolean

fire()

Sets the callback when the instace is loaded

Inherited From:
Source:

getActivationButton(element)

This function returns the HTML button control.

Parameters:
Name Type Description
element HTMLElement

Template control

Overrides:
Source:
Returns:

HTML control button

Type
HTMLElement

getElement()

function remove the event 'click'

Inherited From:
Source:

getImpl()

This function provides the implementation
of the object

Inherited From:
Source:
Returns:
Type
Object

getPanel()

Gets the panel of the control

Inherited From:
Source:
Returns:
Type
M.ui.Panel

manageActivation(html)

TODO

Parameters:
Name Type Description
html HTMLElement

to add the plugin

Inherited From:
Source:

on()

Sets the callback when the instace is loaded

Inherited From:
Source:

once()

Sets the callback when the instace is loaded

Inherited From:
Source:

setImpl(impl)

This function set implementation of this control

Parameters:
Name Type Description
impl M.Map

to add the plugin

Inherited From:
Source:

setPanel(panel)

Sets the panel of the control

Parameters:
Name Type Description
panel M.ui.Panel
Inherited From:
Source:

un()

Sets the callback when the instace is loaded

Inherited From:
Source: