Trying to figure out how on the onem function to clear and reload the tiles from the server even if the map hasn't moved.
<div id="map" style="width: 100%; height: 100%"></div>
<script>
osmAttribution = 'Map data © OpenStreetMap contributors, CC-BY-SA',
osmLayer = new L.TileLayer(osmUrl, {maxZoom: 18, attribution: osmAttribution});
layers: 'nexrad-n0r-900913',
format: 'image/png',
transparent: true,
opacity: 0.4,
attribution: "Weather data © 2012 IEM Nexrad",
});
layers: 'WARN_SHORT_TOR,WARN_SHORT_EWW,WARN_SHORT_SVR,WARN_SHORT_FLW,WARN_SHORT_FFW,WARN_SHORT_SMW',
format: 'image/png',
transparent: true,
opacity: 0.6,
attribution: "Weather data courtesy of nowCOAST"
});
var map = L.map('map').setView([39.1,-94.6], 7);
map.addLayer(osmLayer);
map.addLayer(nexrad);
//map.addLayer(warnings);
var onem = setInterval(onem, 6000);
function onem() {
nexrad.redraw();
}
</script>