I am using Google Maps to display radar and weather alert data from NWS. I have had difficulty displaying the latest polygonal alert data.
I am able to get the latest file by manually modifying the query string each time I want to update the KMZ polygons.
How can I include scripting to modify the end string of the KMZ filename within my Google Maps script, so that I obtain a fresh copy of the latest polygonal alert data each time the site is visited?
var ctaLayer
ctaLayer = new google.maps.KmlLayer({
url:'https://www.spc.noaa.gov/products/watch/ActiveWW.kmz?=dummy5',
preserveViewport:true,
suppressInfoWindows:false,
map:map,
});