M/control/Mouse~Mouse


import Mouse from 'M/control/Mouse';

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 Mouse(format, vendorOptions)

facade/js/control/Mouse.js, line 29
Name Type Description
format String

format response

vendorOptions Object

vendor options for the base library

Extends

  • M.Control

Members

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

Template for this controls - button

Methods

createView(map){Promise}

facade/js/control/Mouse.js, line 50

This function creates the view to the specified map

Name Type Description
map M.Map

map to add the control

Returns:
html response

destroy()

facade/js/control/Mouse.js, line 73

Destroys the control

equals()

facade/js/control/Mouse.js, line 62

This function checks if an object is equals to this control