Class: CoordinateControl

vef.map.tools.CoordinateControl(map, positionopt, layerTree)

Simple overlay that shows the currently hovered coordinates

Constructor

new CoordinateControl(map, positionopt, layerTree)

Creates an instance of CoordinateControl.
Parameters:
Name Type Attributes Default Description
map Map The map object.
position string <optional>
"bottom-left" The position of the control.
layerTree LayerTree The layer tree object.
Source:

Extends

  • UiElement

Methods

setCoordinates(lat, lng)

Sets the coordinates to be displayed.
Parameters:
Name Type Description
lat number The latitude.
lng number The longitude.
Source:

switchView()

Switches the view of the coordinate display.
Source: