Weather Alerts

The weather alerts layer allows your to display weather alerts data on the current map. By adding the WeatherAlertClickControl, weather alert message popup shows after clicking on an alert. WeatherAlertLegendControl allows you to filter alerts by categories. WeatherAlertFilterControl allows you to filter alerts by severity, urgency and certainty.

<!DOCTYPE html>
        <meta charset="utf-8" />
        <link rel="stylesheet" href="" />
        <script src=""></script>
            body { margin: 0; padding: 0; }

            #map {
                position: absolute;
                top: 0;
                bottom: 0;
                width: 100%;

        <div id="map"></div>

            TrimbleMaps.APIKey = 'YOUR_API_KEY_HERE';
            const map = new TrimbleMaps.Map({
                container: 'map', // container id
                style: TrimbleMaps.Common.Style.TRANSPORTATION, // hosted style id
                center: [-98.38, 38.69], // starting position
                zoom: 3 // starting zoom
            const ctrlClick = new TrimbleMaps.WeatherAlertClickControl();
            const ctrlLegend = new TrimbleMaps.WeatherAlertLegendControl();
            map.addControl(ctrlLegend, 'bottom-left');
            var ctrlFilter = new TrimbleMaps.WeatherAlertFilterControl();
            map.addControl(ctrlFilter, 'top-left');
            map.on('load', function() {
Last updated March 30, 2021.