Represents a control for displaying a weather legend on a map. The control shows a color gradient legend based on weather data values. It allows for drawing the legend with specific styles and clearing the canvas.
Private
Readonly
Clears the canvas, removing any existing legend or graphics.
Draws the legend on the canvas based on the provided color style. The legend includes a color gradient and ticks for data values.
The WxColorStyleStrict object defining the color style for the legend.
Returns methods to integrate this legend control with a Leaflet map.
An object containing the onAdd and onRemove methods for Leaflet integration.
onAdd
onRemove
Adds the legend control to the map and returns the div element.
The div element representing the legend control.
Removes the legend control from the map.
Generated using TypeDoc
Represents a control for displaying a weather legend on a map. The control shows a color gradient legend based on weather data values. It allows for drawing the legend with specific styles and clearing the canvas.