Control
Control
is a base class for implementing map controls. Handles positioning. All other controls extend from this class.
See https://leafletjs.com/reference.html#control
Inheritors
Types
Link copied to clipboard
Link copied to clipboard
Object literal with layer names as keys and Layer objects as values.
Functions
Link copied to clipboard
Adds a constructor hook to the class.
Link copied to clipboard
Adds the control to the given map.
Link copied to clipboard
Returns the HTMLElement that contains the control.
Link copied to clipboard
Returns the position of the control.
Link copied to clipboard
Merges options into the defaults of the class.
Link copied to clipboard
Should return the container DOM element for the control and add listeners on relevant map events. Called on addTo
Link copied to clipboard
Optional method. Should contain all clean up code that removes the listeners previously added in onAdd. Called on remove.
Link copied to clipboard
Sets the position of the control.