You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
2 weeks ago
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6762],{92464:function(e,n,t){var r=t(41376),a=t(14703),i=t(42010),u=t(35673),o=t(54354),c=t(86923);function s(){return new Date(36e5*Math.round(Date.now()/36e5)-108e5)}var l=(0,t(12810).$A)([-126,24,-66,50],"EPSG:4326","EPSG:3857"),w=s(),d=null,m=[new i.Z({source:new a.Z({layer:"terrain"})}),new i.Z({extent:l,source:new u.Z({attributions:["Iowa State University"],url:"https://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi",params:{LAYERS:"nexrad-n0r-wmst"}})})];new r.Z({layers:m,target:"map",view:new o.ZP({center:(0,c.qg)(l),zoom:4})});function g(){document.getElementById("info").innerHTML=w.toISOString()}function f(){w.setMinutes(w.getMinutes()+15),w>Date.now()&&(w=s()),m[1].getSource().updateParams({TIME:w.toISOString()}),g()}f();var v=function(){null!==d&&(window.clearInterval(d),d=null)};document.getElementById("play").addEventListener("click",(function(){v(),d=window.setInterval(f,2e3)}),!1),document.getElementById("pause").addEventListener("click",v,!1),g()}},function(e){var n=function(n){return e(e.s=n)};n(9877),n(92464)}]);
|
||
|
//# sourceMappingURL=wms-time.js.map
|