Class: ProjectionSwitcher

vef.map.tools.ProjectionSwitcher(map, positionopt, baseLayersopt, projectionsopt)

Dropdown button to switch the map projection.

Constructor

new ProjectionSwitcher(map, positionopt, baseLayersopt, projectionsopt)

Constructs a new ProjectionSwitcher instance.
Parameters:
Name Type Attributes Default Description
map Map The map object.
position string <optional>
"top-left" The position of the switcher on the map.
baseLayers Object <optional>
The base layers for different projections.
projections Object <optional>
The available projections.
Source:

Extends

  • UiElement

Methods

update()

Updates the state of the switcher buttons based on the current map state.
Source: