The ALKMaps weather alerts layer.
ALKMaps. | The ALKMaps weather alerts layer. |
Properties | |
alertFilters | {Object} Use this to override default weather alert filters. |
Constructor | |
L. | Initializes a new L.ALKMaps.Layer.WeatherAlerts object |
Functions | |
addAlerts | Add alerts to this layer. |
removeAlerts | Remove all alerts layers. |
getAlerts | Gets alerts for the view-port. |
getAlertFilters | Gets alert filters. |
setAlertFilters | Updates all alert filter items at once. |
redraw | Redraws alerts on the layer. |
weatherAlerts | Create a new ALKMaps.Layer.WeatherAlerts instance |
{Object} Use this to override default weather alert filters. Like {urgency: “All”, severity: “All”, certainty: “All”, eventNames: [“Winter Storm Warning”, “Flood Watch”], startTime: “2015-08-29T13:45:30-07:00”, endTime: “2015-08-31T13:45:30-07:00”}. Available values for “severity” are “All”, “Extreme”, “Severe”, “Moderate”, “Minor”, “Unknown”. Available values for “urgency” are “All”, “Immediate”, “Expected”, “Future”, “Past”, “Unknown”. Available values for “certainty” are “All”, “Observed”, “Likely”, “Possible”, “Unlikely”, “Unknown”. Available values for “eventNames” are array of event names such as [“Winter Storm Warning”, “Flood Watch”]. For “startTime” use standard formats such as ISO8601(“2015-08-29T13:45:30-07:00”) or RFC1123(“Sat, 29 Aug 2015 20:45:30 GMT”). For “endTime” use standard formats such as ISO8601(“2015-08-29T13:45:30-07:00”) or RFC1123(“Sat, 29 Aug 2015 20:45:30 GMT”).
Add alerts to this layer.
addAlerts: function()
Remove all alerts layers.
removeAlerts: function()
Gets alerts for the view-port.
getAlerts: function()
Gets alert filters.
getAlertFilters: function()
Updates all alert filter items at once.
setAlertFilters: function( filter )
Redraws alerts on the layer.
redraw: function()
Create a new ALKMaps.Layer.WeatherAlerts instance
layer.weatherAlerts = function()