Layers
The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the detailed example).
Base layers will be switched with radio buttons, while overlays will be switched with checkboxes.
Note that all base layers should be passed in the base layers object, but only one should be added to the map during map instantiation.
Constructors
Types
The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the detailed example).
Properties
Functions
Adds a base layer (radio button entry) with the given name to the control.
Adds an overlay (checkbox entry) with the given name to the control.
Adds the control to the given map.
Returns the HTMLElement that contains the control.
Returns the position of the control.
Removes the control from the map it is currently active on.
Remove the given layer from the control.
Sets the position of the control.