Skip to Navigation Skip to content

Regional and Mesoscale Meteorology Branch

Search the RAMMB website

NWS X.COM Links

document.addEventListener(“DOMContentLoaded”, function () { var map = L.map(‘map’).setView([39.8283, -98.5795], 4); // Center of US L.tileLayer(‘https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png’, { attribution: ‘© OpenStreetMap contributors’ }).addTo(map); var geojsonUrl = ‘https://services.nationalmap.gov/arcgis/rest/services/geoplatform/NWSBoundaries/MapServer/1/query?where=1%3D1&outFields=*&outSR=4326&f=geojson’; fetch(geojsonUrl) .then(response => response.json()) .then(data => { L.geoJSON(data, { style: { color: “blue”, weight: 1, fillOpacity: 0.2 }, onEachFeature: function (feature, layer) { let cwa = feature.properties.CWA; let twitterUrl = `https://twitter.com/NWS${cwa}`; layer.bindPopup(`${cwa} NWS Office
Go to Twitter`); layer.on(‘click’, function () { window.open(twitterUrl, ‘_blank’); }); } }).addTo(map); }) .catch(error => console.error(‘Error loading CWA data:’, error)); }); #map { height: 90vh; width: 100%; }