NWS Columbia Tropical Page (2024)

'); }; if (newsortedIDs[0] == 2) { $j(".nhc2div").remove(); $j(".1 + .nhcdiv1").remove(); $j(".1 + .nhcdiv3").remove(); $j(".1 + .nhcdiv4").remove(); $j(".1 + .nhcdiv5").remove(); $j(".1").after('

'+oldhtmlnhc2+'

'); }; if (newsortedIDs[0] == 3) { $j(".nhc3div").remove(); $j(".1 + .nhcdiv1").remove(); $j(".1 + .nhcdiv2").remove(); $j(".1 + .nhcdiv4").remove(); $j(".1 + .nhcdiv5").remove(); $j(".1").after('

'+oldhtmlnhc3+'

'); }; if (newsortedIDs[0] == 4) { $j(".nhc4div").remove(); $j(".1 + .nhcdiv1").remove(); $j(".1 + .nhcdiv2").remove(); $j(".1 + .nhcdiv3").remove(); $j(".1 + .nhcdiv5").remove(); $j(".1").after('

'+oldhtmlnhc4+'

'); }; if (newsortedIDs[0] == 5) { $j(".nhc5div").remove(); $j(".1 + .nhcdiv1").remove(); $j(".1 + .nhcdiv2").remove(); $j(".1 + .nhcdiv3").remove(); $j(".1 + .nhcdiv4").remove(); $j(".1").after('

'+oldhtmlnhc5+'

'); }; if (newsortedIDs[1] == 1) { $j(".nhc1div").remove(); $j(".2 + .nhcdiv2").remove(); $j(".2 + .nhcdiv3").remove(); $j(".2 + .nhcdiv4").remove(); $j(".2 + .nhcdiv5").remove(); $j(".2").after('

'+oldhtmlnhc1+'

'); }; if (newsortedIDs[1] == 2) { $j(".nhc2div").remove(); $j(".2 + .nhcdiv1").remove(); $j(".2 + .nhcdiv3").remove(); $j(".2 + .nhcdiv4").remove(); $j(".2 + .nhcdiv5").remove(); $j(".2").after('

'+oldhtmlnhc2+'

'); }; if (newsortedIDs[1] == 3) { $j(".nhc3div").remove(); $j(".2 + .nhcdiv1").remove(); $j(".2 + .nhcdiv2").remove(); $j(".2 + .nhcdiv4").remove(); $j(".2 + .nhcdiv5").remove(); $j(".2").after('

'+oldhtmlnhc3+'

'); }; if (newsortedIDs[1] == 4) { $j(".nhc4div").remove(); $j(".2 + .nhcdiv1").remove(); $j(".2 + .nhcdiv2").remove(); $j(".2 + .nhcdiv3").remove(); $j(".2 + .nhcdiv5").remove(); $j(".2").after('

'+oldhtmlnhc4+'

'); }; if (newsortedIDs[1] == 5) { $j(".nhc5div").remove(); $j(".2 + .nhcdiv1").remove(); $j(".2 + .nhcdiv2").remove(); $j(".2 + .nhcdiv3").remove(); $j(".2 + .nhcdiv4").remove(); $j(".2").after('

'+oldhtmlnhc5+'

'); }; if (newsortedIDs[2] == 1) { $j(".nhc1div").remove(); $j(".3 + .nhcdiv2").remove(); $j(".3 + .nhcdiv3").remove(); $j(".3 + .nhcdiv4").remove(); $j(".3 + .nhcdiv5").remove(); $j(".3").after('

'+oldhtmlnhc1+'

'); }; if (newsortedIDs[2] == 2) { $j(".nhc2div").remove(); $j(".3 + .nhcdiv1").remove(); $j(".3 + .nhcdiv3").remove(); $j(".3 + .nhcdiv4").remove(); $j(".3 + .nhcdiv5").remove(); $j(".3").after('

'+oldhtmlnhc2+'

'); }; if (newsortedIDs[2] == 3) { $j(".nhc3div").remove(); $j(".3 + .nhcdiv1").remove(); $j(".3 + .nhcdiv2").remove(); $j(".3 + .nhcdiv4").remove(); $j(".3 + .nhcdiv5").remove(); $j(".3").after('

'+oldhtmlnhc3+'

'); }; if (newsortedIDs[2] == 4) { $j(".nhc4div").remove(); $j(".3 + .nhcdiv1").remove(); $j(".3 + .nhcdiv2").remove(); $j(".3 + .nhcdiv3").remove(); $j(".3 + .nhcdiv5").remove(); $j(".3").after('

'+oldhtmlnhc4+'

'); }; if (newsortedIDs[2] == 5) { $j(".nhc5div").remove(); $j(".3 + .nhcdiv1").remove(); $j(".3 + .nhcdiv2").remove(); $j(".3 + .nhcdiv3").remove(); $j(".3 + .nhcdiv4").remove(); $j(".3").after('

'+oldhtmlnhc5+'

'); }; if (newsortedIDs[3] == 1) { $j(".nhc1div").remove(); $j(".4 + .nhcdiv2").remove(); $j(".4 + .nhcdiv3").remove(); $j(".4 + .nhcdiv4").remove(); $j(".4 + .nhcdiv5").remove(); $j(".4").after('

'+oldhtmlnhc1+'

'); }; if (newsortedIDs[3] == 2) { $j(".nhc2div").remove(); $j(".4 + .nhcdiv1").remove(); $j(".4 + .nhcdiv3").remove(); $j(".4 + .nhcdiv4").remove(); $j(".4 + .nhcdiv5").remove(); $j(".4").after('

'+oldhtmlnhc2+'

'); }; if (newsortedIDs[3] == 3) { $j(".nhc3div").remove(); $j(".4 + .nhcdiv1").remove(); $j(".4 + .nhcdiv2").remove(); $j(".4 + .nhcdiv4").remove(); $j(".4 + .nhcdiv5").remove(); $j(".4").after('

'+oldhtmlnhc3+'

'); }; if (newsortedIDs[3] == 4) { $j(".nhc4div").remove(); $j(".4 + .nhcdiv1").remove(); $j(".4 + .nhcdiv2").remove(); $j(".4 + .nhcdiv3").remove(); $j(".4 + .nhcdiv5").remove(); $j(".4").after('

'+oldhtmlnhc4+'

'); }; if (newsortedIDs[3] == 5) { $j(".nhc5div").remove(); $j(".4 + .nhcdiv1").remove(); $j(".4 + .nhcdiv2").remove(); $j(".4 + .nhcdiv3").remove(); $j(".4 + .nhcdiv4").remove(); $j(".4").after('

'+oldhtmlnhc5+'

'); }; if (newsortedIDs[4] == 1) { $j(".nhc1div").remove(); $j(".5 + .nhcdiv2").remove(); $j(".5 + .nhcdiv3").remove(); $j(".5 + .nhcdiv4").remove(); $j(".5 + .nhcdiv5").remove(); $j(".5").after('

'+oldhtmlnhc1+'

'); }; if (newsortedIDs[4] == 2) { $j(".nhc2div").remove(); $j(".5 + .nhcdiv1").remove(); $j(".5 + .nhcdiv3").remove(); $j(".5 + .nhcdiv4").remove(); $j(".5 + .nhcdiv5").remove(); $j(".5").after('

'+oldhtmlnhc2+'

'); }; if (newsortedIDs[4] == 3) { $j(".nhc3div").remove(); $j(".5 + .nhcdiv1").remove(); $j(".5 + .nhcdiv2").remove(); $j(".5 + .nhcdiv4").remove(); $j(".5 + .nhcdiv5").remove(); $j(".5").after('

'+oldhtmlnhc3+'

'); }; if (newsortedIDs[4] == 4) { $j(".nhc4div").remove(); $j(".5 + .nhcdiv1").remove(); $j(".5 + .nhcdiv2").remove(); $j(".5 + .nhcdiv3").remove(); $j(".5 + .nhcdiv5").remove(); $j(".5").after('

'+oldhtmlnhc4+'

'); }; if (newsortedIDs[4] == 5) { $j(".nhc5div").remove(); $j(".5 + .nhcdiv1").remove(); $j(".5 + .nhcdiv2").remove(); $j(".5 + .nhcdiv3").remove(); $j(".5 + .nhcdiv4").remove(); $j(".5").after('

'+oldhtmlnhc5+'

'); }; } }); }); $j("#sortable").trigger('sortupdate'); // logs update called. $j("#sortable").disableSelection(); $j("#feedback").click(function() { var email = 'sr-tropical-web@noaa.gov'; var subject = 'SR Tropical Webpage Feedback'; window.location = 'mailto:' + email + '?subject=' + subject; }); $j("#tabs").tabs({ show: false }); var test = false; //$j('.subMenuNav').hide(); // removes the WFO level menus - optional $j('#myfcst-widget').hide(); $j('.full-width-border').css('border-top', 'white'); $j('.partial-width-borderbottom').css('border-bottom', 'white'); $j('.five-sixth-first').css({ 'width' : '100%', 'padding-right': '0px', 'padding-left': '0px' }); /*if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { $j('.div-full').css('margin-left','5px'); }; */ //$j('.subMenuNav').hide(); // removes the WFO level menus - optional /*$j('#myfcst-widget').hide(); $j('.full-width-border').css('border-top', 'white'); $j('.partial-width-borderbottom').css('border-bottom', 'white'); $j('.five-sixth-first').css({ 'width' : '100%', 'padding-right': '0px', 'padding-left': '0px' }); */ /* erWFO = ['chs','ilm','mhx','akq','lwx','phi','okx','box','gyx','car','cae','gsp','rah','rnk','lwx','aly']; */ erWFO = ['btv','buf','chs','cle','ilm','mhx','akq','lwx','phi','okx','box','gyx','car','cae','gsp','rah','rnk','aly','ctp','bgm','rlx','pbz','iln']; var wfoNameURL = deparamER(location.pathname); var foo = deparam(window.location.search); /*if ( foo.office == undefined ) { office = wfoNameURL.toUpperCase(); } else { office = foo.office.toUpperCase(); var iskey = hasKeySetTo(namedict,"wfo",office); if ( ! /^\w{3}$/.test(office) ) { office = "NHC"; } } */ //var officelower = office.toLowerCase(); //var officefinal = office.slice(0,3); /*function hasKeySetTo(obj,key,value) { return obj.hasOwnProperty(key) && obj[key]==value; };*/ for (var i = 0; i < erWFO.length;i++) { if (wfoNameURL == erWFO[i]) { office = wfoNameURL.toUpperCase(); var officelower = office.toLowerCase(); break; } else { if (foo.office !== undefined ) { //sessionStorage.setItem(office,foo.office.toUpperCase()); office = foo.office.toUpperCase(); if (!/^\w{3}$/.test(office)) { office ="NHC"; } var officelower = office.toLowerCase(); } else { office = "NHC"; var officelower = office.toLowerCase(); } } }; var officefinal = office.slice(0,3); //sessionStorage.removeItem("SID"); //sessionStorage.clear(); //sessionStorage.setItem("SID", office); //console.log("srh_tropical"); //var testdata1 = localStorage.getItem("SID"); //var testdata = localStorage.setItem("CRP",JSON.stringify(officefinal)); //console.log(testdata1); //localStorage.clear(); //localStorage.setItem(officefinalstorage,officefinal); //console.log(officefinalstorage); //console.log("SID is "+localStorage.getItem("SID")); function deparamER(pathname) { // grab the current URL pathname var officeName = pathname.split("/")[1].toString(); if (officeName.length == 3) { return officeName; } else { return undefined } }; function deparam(querystring) { // remove any preceding url and split querystring = querystring.substring(querystring.indexOf('?')+1).split('&'); var params = {}, pair, d = decodeURIComponent; // march and parse for (var i = querystring.length - 1; i >= 0; i--) { pair = querystring[i].split('='); var myPair = d(pair[0]); if ( params[myPair] !== undefined ) { params[myPair] += ","+d(pair[1]); } else { params[myPair] = d(pair[1]); } } return params; }; /*namedict = [{wfo:"CRP", name:"Corpus Christi", fb:"NWSCorpus", tw:"NWSCorpus", lat:28.07, lon:-97.00}, {wfo:"BRO", name:"Brownsville/Rio Grande Valley", fb:"NWSBrownsville", tw:"NWSBrownsville", lat:26.70, lon:-98.00}, {wfo:"EWX", name:"Austin/San Antonio", fb:"NWSSanAntonio", tw:"NWSSanAntonio", lat:29.65, lon:-98.94}, {wfo:"HGX", name:"Houston/Galveston", fb:"NWSHouston", tw:"NWSHouston", lat:29.35, lon:-95.17}, {wfo:"LCH", name:"Lake Charles", fb:"NWSLakeCharles", tw:"NWSLakeCharles", lat:29.45, lon:-92.97}, {wfo:"LIX", name:"New Orleans/Baton Rouge", fb:"NWSNewOrleans", tw:"NWSNewOrleans", lat:29.70, lon:-90.39}, {wfo:"MOB", name:"Mobile/Pensacola", fb:"NWSMobile", tw:"NWSMobile", lat:30.00, lon:-87.62}, {wfo:"TAE", name:"Tallahassee", fb:"NWSTallahassee", tw:"NWSTallahassee", lat:29.75, lon:-84.54}, {wfo:"TBW", name:"Tampa Bay", fb:"NWSTampaBay", tw:"NWSTampaBay", lat:27.87, lon:-82.07}, {wfo:"JAX", name:"Jacksonville", fb:"NWSJacksonville", tw:"NWSJacksonville", lat:30.46, lon:-81.40}, {wfo:"MLB", name:"Melbourne", fb:"NWSMelbourne", tw:"NWSMelbourne", lat:28.22, lon:-81.06}, {wfo:"MFL", name:"Miami", fb:"NWSMiami", tw:"NWSMiami", lat:25.70, lon:-80.85}, {wfo:"KEY", name:"Key West", fb:"NWSKeyWest", tw:"NWSKeyWest", lat:24.84, lon:-81.09}, {wfo:"SJU", name:"San Juan", fb:"NWSSanJuan", tw:"NWSSanJuan", lat:18.21, lon:-66.30}, {wfo:"CHS", name:"Charleston", fb:"NWSCharlestonSC", tw:"NWSCharlestonSC", lat:32.75, lon:-80.00}, {wfo:"ILM", name:"Wilmington", fb:"NWSWilmingtonNC", tw:"NWSWilmingtonNC", lat:34.17, lon:-78.00}, {wfo:"MHX", name:"Newport/Morehead City", fb:"NWSMoreheadCity", tw:"nwsmoreheadcity", lat:35.31, lon:-76.25}, {wfo:"AKQ", name:"Wakefield", fb:"NWSWakefieldVA", tw:"nwswakefieldVA", lat:37.24, lon:-76.44}, {wfo:"LWX", name:"Baltimore/Washington", fb:"NWSBaltWash", tw:"NWS_BaltWash", lat:38.84, lon:-77.00}, {wfo:"PHI", name:"Philadelphia/Mount Holly", fb:"NWSMountHolly", tw:"NWS_MountHolly", lat:39.67, lon:-74.90}, {wfo:"OKX", name:"New York", fb:"NWSNewYorkNY", tw:"NWSNewYorkNY", lat:40.75, lon:-73.00}, {wfo:"BOX", name:"Boston/Norton", fb:"NWSBoston", tw:"NWSBoston", lat:41.90, lon:-71.00}, {wfo:"GYX", name:"Gray", fb:"NWSGray", tw:"NWSGray", lat:43.60, lon:-70.15}, {wfo:"CAR", name:"Caribou", fb:"NWSCaribou", tw:"nwscaribou", lat:44.56, lon:-68.45}, {wfo:"MAF", name:"Midland/Odessa", fb:"NWSMidland", tw:"NWSMidland", lat:31.40, lon:-103.10}, {wfo:"SJT", name:"San Angelo", fb:"NWSSanAngelo", tw:"NWSSanAngelo", lat:31.58, lon:-100.07}, {wfo:"FWD", name:"Fort Worth", fb:"NWSDallasFortWorth", tw:"NWSFortWorth", lat:32.37, lon:-97.14}, {wfo:"OUN", name:"Norman", fb:"NWSNorman", tw:"NWSNorman", lat:35.20, lon:-98.22}, {wfo:"TSA", name:"Tulsa", fb:"NWSTulsa", tw:"NWSTulsa", lat:35.75, lon:-95.25}, {wfo:"SHV", name:"Shreveport", fb:"NWSShreveport", tw:"NWSShreveport", lat:32.63, lon:-93.87}, {wfo:"LZK", name:"Little Rock", fb:"NWSLittleRock", tw:"NWSLittleRock", lat:34.91, lon:-92.48}, {wfo:"JAN", name:"Jackson", fb:"NWSJacksonMS", tw:"NWSJacksonMS", lat:32.54, lon:-90.20}, {wfo:"MEG", name:"Memphis", fb:"NWSMemphis", tw:"NWSMemphis", lat:35.20, lon:-89.56}, {wfo:"BMX", name:"Birmingham", fb:"NWSBirmingham", tw:"NWSBirmingham", lat:33.03, lon:-86.68}, {wfo:"HUN", name:"Huntsville", fb:"NWSHuntsville", tw:"NWSHuntsville", lat:34.67, lon:-86.77}, {wfo:"OHX", name:"Nashville", fb:"NWSNashville", tw:"NWSNashville", lat:35.94, lon:-86.57}, {wfo:"MRX", name:"Morristown", fb:"NWSMorristown", tw:"NWSMorristown", lat:36.01, lon:-83.71}, {wfo:"FFC", name:"Atlanta", fb:"NWSAtlanta", tw:"NWSAtlanta", lat:33.33, lon:-83.92}, {wfo:"CAE", name:"Columbia", fb:"NWSColumbia", tw:"nwscolumbia", lat:33.85, lon:-81.18}, {wfo:"GSP", name:"Greenville-Spartanburg", fb:"NWSGSP", tw:"nwsgsp", lat:35.16, lon:-82.08}, {wfo:"RAH", name:"Raleigh", fb:"NWSRaleigh", tw:"nwsraleigh", lat:35.66, lon:-78.96}, {wfo:"CTP", name:"State College", fb:"NWSStateCollege", tw:"NWSStatecollege", lat:40.81, lon:-77.67}, {wfo:"BGM", name:"Binghamton", fb:"NWSBinghamton", tw:"NWSBinghamton", lat:42.23, lon:-75.90}, {wfo:"ALY", name:"Albany", fb:"NWSAlbany", tw:"NWSAlbany", lat:42.81, lon:-73.92}, {wfo:"BTV", name:"Burlington", fb:"NWSBurlington", tw:"NWSBurlington", lat:44.36, lon:-73.46}, {wfo:"RNK", name:"Blacksburg", fb:"NWSBlacksburg", tw:"nwsblacksburg", lat:37.07, lon:-80.15}, {wfo:"RLX", name:"Charleston", fb:"NWSCharlestonWV", tw:"NWSCharlestonWV", lat:38.57, lon:-81.45}, {wfo:"PBZ", name:"Pittsburgh", fb:"NWSPittsburgh", tw:"NWSPittsburgh", lat:40.36, lon:-80.23}, {wfo:"BUF", name:"Buffalo", fb:"NWSBuffalo", tw:"NWSBUFFALO", lat:43.00, lon:-77.55}, {wfo:"NHC", name:"National Hurricane Center", fb:"NWSNHC", tw:"NWSNHC", lat:36.64, lon:-83.66}, {wfo:"SGX", name:"San Diego", fb:"NWSSanDiego", tw:"NWSSanDiego", lat:33.69,lon:-116.93}, {wfo:"LOX", name:"Los Angeles/Oxnard", fb: "NWSLosAngeles", tw:"NWSLosAngeles", lat:34.72, lon:-119.37} ]; */ var namedict = [{wfo:"CRP", name:"Corpus Christi", fb:"NWSCorpus", tw:"NWSCorpus", lat:28.07, lon:-97.00, basin:"at"}, {wfo:"BRO", name:"Brownsville/Rio Grande Valley", fb:"NWSBrownsville", tw:"NWSBrownsville", lat:26.70, lon:-98.00, basin:"at"}, {wfo:"EWX", name:"Austin/San Antonio", fb:"NWSSanAntonio", tw:"NWSSanAntonio", lat:29.65, lon:-98.94, basin:"at"}, {wfo:"HGX", name:"Houston/Galveston", fb:"NWSHouston", tw:"NWSHouston", lat:29.35, lon:-95.17, basin:"at"}, {wfo:"LCH", name:"Lake Charles", fb:"NWSLakeCharles", tw:"NWSLakeCharles", lat:29.45, lon:-92.97, basin:"at"}, {wfo:"LIX", name:"New Orleans/Baton Rouge", fb:"NWSNewOrleans", tw:"NWSNewOrleans", lat:29.70, lon:-90.39, basin:"at"}, {wfo:"MOB", name:"Mobile/Pensacola", fb:"NWSMobile", tw:"NWSMobile", lat:30.00, lon:-87.62, basin:"at"}, {wfo:"TAE", name:"Tallahassee", fb:"NWSTallahassee", tw:"NWSTallahassee", lat:29.75, lon:-84.54, basin:"at"}, {wfo:"TBW", name:"Tampa Bay", fb:"NWSTampaBay", tw:"NWSTampaBay", lat:27.87, lon:-82.07, basin:"at"}, {wfo:"JAX", name:"Jacksonville", fb:"NWSJacksonville", tw:"NWSJacksonville", lat:30.46, lon:-81.40, basin:"at"}, {wfo:"MLB", name:"Melbourne", fb:"NWSMelbourne", tw:"NWSMelbourne", lat:28.22, lon:-81.06, basin:"at"}, {wfo:"MFL", name:"Miami", fb:"NWSMiami", tw:"NWSMiami", lat:25.70, lon:-80.85, basin:"at"}, {wfo:"KEY", name:"Key West", fb:"NWSKeyWest", tw:"NWSKeyWest", lat:24.84, lon:-81.09, basin:"at"}, {wfo:"SJU", name:"San Juan", fb:"NWSSanJuan", tw:"NWSSanJuan", lat:18.21, lon:-66.30, basin:"at"}, {wfo:"CHS", name:"Charleston", fb:"NWSCharlestonSC", tw:"NWSCharlestonSC", lat:32.75, lon:-80.00, basin:"at"}, {wfo:"ILM", name:"Wilmington", fb:"NWSWilmingtonNC", tw:"NWSWilmingtonNC", lat:34.17, lon:-78.00, basin:"at"}, {wfo:"MHX", name:"Newport/Morehead City", fb:"NWSMoreheadCity", tw:"nwsmoreheadcity", lat:35.31, lon:-76.25, basin:"at"}, {wfo:"AKQ", name:"Wakefield", fb:"NWSWakefieldVA", tw:"nwswakefieldVA", lat:37.24, lon:-76.44, basin:"at"}, {wfo:"LWX", name:"Baltimore/Washington", fb:"NWSBaltWash", tw:"NWS_BaltWash", lat:38.84, lon:-77.00, basin:"at"}, {wfo:"PHI", name:"Philadelphia/Mount Holly", fb:"NWSMountHolly", tw:"NWS_MountHolly", lat:39.67, lon:-74.90, basin:"at"}, {wfo:"OKX", name:"New York", fb:"NWSNewYorkNY", tw:"NWSNewYorkNY", lat:40.75, lon:-73.00, basin:"at"}, {wfo:"BOX", name:"Boston/Taunton", fb:"NWSBoston", tw:"NWSBoston", lat:41.90, lon:-71.00, basin:"at"}, {wfo:"GYX", name:"Gray/Portland", fb:"NWSGray", tw:"NWSGray", lat:43.60, lon:-70.15, basin:"at"}, {wfo:"CAR", name:"Caribou", fb:"NWSCaribou", tw:"nwscaribou", lat:44.56, lon:-68.45, basin:"at"}, {wfo:"MAF", name:"Midland/Odessa", fb:"NWSMidland", tw:"NWSMidland", lat:31.40, lon:-103.10, basin:"at"}, {wfo:"SJT", name:"San Angelo", fb:"NWSSanAngelo", tw:"NWSSanAngelo", lat:31.58, lon:-100.07, basin:"at"}, {wfo:"FWD", name:"Fort Worth/Dallas", fb:"NWSDallasFortWorth", tw:"NWSFortWorth", lat:32.37, lon:-97.14, basin:"at"}, {wfo:"OUN", name:"Norman", fb:"NWSNorman", tw:"NWSNorman", lat:35.20, lon:-98.22, basin:"at"}, {wfo:"TSA", name:"Tulsa", fb:"NWSTulsa", tw:"NWSTulsa", lat:35.75, lon:-95.25, basin:"at"}, {wfo:"SHV", name:"Shreveport", fb:"NWSShreveport", tw:"NWSShreveport", lat:32.63, lon:-93.87, basin:"at"}, {wfo:"LZK", name:"Little Rock", fb:"NWSLittleRock", tw:"NWSLittleRock", lat:34.91, lon:-92.48, basin:"at"}, {wfo:"JAN", name:"Jackson", fb:"NWSJacksonMS", tw:"NWSJacksonMS", lat:32.54, lon:-90.20, basin:"at"}, {wfo:"MEG", name:"Memphis", fb:"NWSMemphis", tw:"NWSMemphis", lat:35.20, lon:-89.56, basin:"at"}, {wfo:"BMX", name:"Birmingham", fb:"NWSBirmingham", tw:"NWSBirmingham", lat:33.03, lon:-86.68, basin:"at"}, {wfo:"HUN", name:"Huntsville", fb:"NWSHuntsville", tw:"NWSHuntsville", lat:34.67, lon:-86.77, basin:"at"}, {wfo:"OHX", name:"Nashville", fb:"NWSNashville", tw:"NWSNashville", lat:35.94, lon:-86.57, basin:"at"}, {wfo:"MRX", name:"Morristown", fb:"NWSMorristown", tw:"NWSMorristown", lat:36.01, lon:-83.71, basin:"at"}, {wfo:"FFC", name:"Atlanta", fb:"NWSAtlanta", tw:"NWSAtlanta", lat:33.33, lon:-83.92, basin:"at"}, {wfo:"CAE", name:"Columbia", fb:"NWSColumbia", tw:"nwscolumbia", lat:33.85, lon:-81.18, basin:"at"}, {wfo:"GSP", name:"Greenville-Spartanburg", fb:"NWSGSP", tw:"nwsgsp", lat:35.16, lon:-82.08, basin:"at"}, {wfo:"RAH", name:"Raleigh/Durham", fb:"NWSRaleigh", tw:"nwsraleigh", lat:35.66, lon:-78.96, basin:"at"}, {wfo:"CTP", name:"State College", fb:"NWSStateCollege", tw:"NWSStatecollege", lat:40.81, lon:-77.67, basin:"at"}, {wfo:"BGM", name:"Binghamton", fb:"NWSBinghamton", tw:"NWSBinghamton", lat:42.23, lon:-75.90, basin:"at"}, {wfo:"ALY", name:"Albany", fb:"NWSAlbany", tw:"NWSAlbany", lat:42.81, lon:-73.92, basin:"at"}, {wfo:"BTV", name:"Burlington", fb:"NWSBurlington", tw:"NWSBurlington", lat:44.36, lon:-73.46, basin:"at"}, {wfo:"RNK", name:"Blacksburg", fb:"NWSBlacksburg", tw:"nwsblacksburg", lat:37.07, lon:-80.15, basin:"at"}, {wfo:"RLX", name:"Charleston", fb:"NWSCharlestonWV", tw:"NWSCharlestonWV", lat:38.57, lon:-81.45, basin:"at"}, {wfo:"PBZ", name:"Pittsburgh", fb:"NWSPittsburgh", tw:"NWSPittsburgh", lat:40.36, lon:-80.23, basin:"at"}, {wfo:"BUF", name:"Buffalo", fb:"NWSBuffalo", tw:"NWSBUFFALO", lat:43.00, lon:-77.55, basin:"at"}, {wfo:"SGX", name:"San Diego", fb:"NWSSanDiego", tw:"NWSSanDiego", lat:33.69, lon:-116.93, basin:"ep"}, {wfo:"LOX", name:"Los Angeles/Oxnard", fb:"NWSLosAngeles", tw:"NWSLosAngeles", lat:34.72, lon:-119.37, basin:"ep"}, {wfo:"NHC", name:"National Hurricane Center", fb:"NWSNHC", tw:"NWSNHC", lat:36.64, lon:-83.66, basin:"at"} ]; /* for (var i = 0; i < namedict.length;i++) { if (office.slice(0,3) == namedict[i].wfo ) { fullname = namedict[i].name; fburl = namedict[i].fb; twurl = namedict[i].tw; basin = namedict[i].basin; } }; */ for (var i = 0; i < namedict.length;i++) { if (office.slice(0,3) == namedict[i].wfo ) { fullname = namedict[i].name; fburl = namedict[i].fb; twurl = namedict[i].tw; latitude = namedict[i].lat; longitude = namedict[i].lon; //alert(office); wfo = namedict[i].wfo; basin = namedict[i].basin; } }; if ((wfo == undefined) || (wfo == "NHC")) { zoom = 3; latitude = 36.64; longitude = -83.66; } else { zoom = 7; }; if (fburl == undefined) { fburl = "NWSNHC"; }; if (twurl == undefined) { twurl = "NHC_Atlantic"; }; if (fullname == undefined) { fullname = "National Hurricane Center"; }; if (fullname != "National Hurricane Center") { $j("#officeurl").prepend("NWS "+fullname+" homepage"); $j("#officesection").html("

NWS "+ fullname+" Local Information

"); $j("#evac").css("margin-top", "5px"); } else { $j("#officeurl").prepend("National Hurricane Center homepage"); }; var localurl = officelower.slice(0,3) + '_local.html'; $j.ajax({ url: "/source/"+officelower.slice(0,3)+"/tropical/"+localurl, //url: localurl, //url: "http://www.weather.gov/source/srh/tropical/localwfo/crp_local.html", dataType: "html", cache: false, success: function(data, status) { $j("#officesection").show(); $j('#localwfo').show(); $j('#localwfo').prepend(data); //location.href="#data"; }, error: function(data, status) { $j("#officesection").hide(); $j('#localwfo').hide(); } }); var misclinksurl = officelower.slice(0,3) + '_links.html'; var htmllinks; $j.ajax({ url: "/source/"+officelower.slice(0,3)+"/tropical/"+misclinksurl, //url: misclinksurl, //url: "http://www.weather.gov/source/srh/tropical/crp_links.html", dataType: "html", cache: false, success: function(data, status) { //alert(data); //$j('#misclinkslist').wrapInner(data); var htmlre = /(<\/?html>|<\/?ul>)/g; data = data.replace(htmlre,""); //alert(data); htmllinks = data; //alert(htmllinks); $j('#misclinkslist').html(htmllinks); html = '

  • Historical Hurricane Tracks
  • '; html += '

  • Atlantic Basin Hurricane Tracking Chart
  • '; html += '

  • Probabilistic Storm Surge (P-Surge)
  • '; html += '

  • Tropical Cyclone Radar Loops
  • '; $j('#misclinkslist').append(html); //location.href="#data"; }, error: function(data, status) { html = '

  • Historical Hurricane Tracks
  • '; html += '

  • Atlantic Basin Hurricane Tracking Chart
  • '; html += '

  • Probabilistic Storm Surge (P-Surge)
  • '; html += '

  • Tropical Cyclone Radar Loops
  • '; $j('#misclinkslist').html(html); } }); if (office=="JAX") { var briefingsrc = "https://www.weather.gov/media/jax/briefings/nws-jax-briefing.pdf"; $j("#briefinglink").html('

    Local Briefing from NWS '+fullname+'

    '); $j("#briefinglink").show(); } else if (office=="SHV") { var briefingsrc = "https://www.weather.gov/shv/briefing"; $j("#briefinglink").html('

    Local Briefing from NWS '+fullname+'

    '); $j("#briefinglink").show(); } else if (office=="MOB") { var briefingsrc = "https://www.weather.gov/media/mob/pdf/mob_tropical_update.pdf"; $j("#briefinglink").html('

    Local Briefing from NWS '+fullname+'

    '); $j("#briefinglink").show(); } else if (office=="CRP") { var briefingsrc = "https://www.weather.gov/media/crp/TropicalWebinar.pdf"; $j("#briefinglink").html('

    Local Briefing from NWS '+fullname+'

    '); $j("#briefinglink").show(); } else if (office=="MEG") { var briefingsrc = "https://www.weather.gov/meg/decisionsupport"; $j("#briefinglink").html('

    Local Briefing from NWS '+fullname+'

    '); $j("#briefinglink").show(); } else if (office=="EWX") { var briefingsrc = "https://www.weather.gov/media/ewx/ewx-briefing.pdf"; $j("#briefinglink").html('

    Local Briefing from NWS '+fullname+'

    '); $j("#briefinglink").show(); } else if (office=="LIX") { var briefingsrc = "https://www.weather.gov/media/lix/briefings/briefingcurrent.pdf"; $j("#briefinglink").html('

    Local Briefing from NWS '+fullname+'

    '); $j("#briefinglink").show(); } else if (briefDisplay==true) { var briefingsrc = briefingsrcER; $j("#briefinglink").html('

    Local Briefing from NWS '+fullname+'

    '); $j("#briefinglink").show(); } else { $j("#briefinglink").hide(); }; var nowt = new Date(); var currenttime = nowt.valueOf(); // ############################################################################################################################################## // Set up the CFW and SRF Links for both the Active Tab and the HTI Tab. This needs to be done early so that it is loaded into the page // at the beginning and not just activated when a tab is clicked. // Added by Andy Pohl, WFO GYX 5/24/2022 if (coastalOffice == true) { var surfsrc = "https://forecast.weather.gov/product.php?site=NWS&issuedby="+office+"&product=SRF&format=CI&version=1&glossary=1"; $j("#surflink").html('Beach Hazards from the National Weather Service office in '+fullname+''); $j("#surflink").show(); var cfwsrc = "https://forecast.weather.gov/product.php?site=NWS&issuedby="+office+"&product=CFW&format=CI&version=1&glossary=1"; $j("#cfwlink").html('Coastal Flood Watches and Warnings from the National Weather Service office in '+fullname+''); $j("#cfwlink").show(); } else { $j("#surflink").hide(); $j("#cfwlink").hide(); }; if (coastalOffice == true) { var surfhtisrc = "https://forecast.weather.gov/product.php?site=NWS&issuedby="+office+"&product=SRF&format=CI&version=1&glossary=1"; $j("#surfhtilink").html('Beach Hazards from the National Weather Service office in '+fullname+''); $j("#surfhtilink").show(); var cfwhtisrc = "https://forecast.weather.gov/product.php?site=NWS&issuedby="+office+"&product=CFW&format=CI&version=1&glossary=1"; $j("#cfwhtilink").html('Coastal Flood Watches and Warnings from the National Weather Service office in '+fullname+''); $j("#cfwhtilink").show(); } else { $j("#surfhtilink").hide(); $j("#cfwhtilink").hide(); }; // ########################################################################################################################################## // $j.get("/source/crp/testtropical/EWW"+office+".txt", function(data){ $j.get("/source/srh/tcv/text/EWW"+office+".txt", function(data){ //$j.get("EWWCRP.txt", function(data){ var vtecstring = /\d{6}T\d{4}Z\//; var officepattern = new RegExp(office, "i"); //alert(office); var ewwmatch = data.match(officepattern); //alert(ewwmatch); //alert(ewwmatch[0]); var datetimematch = String(data.match(vtecstring)); //alert(datetimematch); var expireyear = "20" + datetimematch.substring(0,2); //alert(expireyear); var expiremonth = Number(datetimematch.substring(2,4)) - 1; //alert(expiremonth); var expireday = Number(datetimematch.substring(4,6)); var expirehour = Number(datetimematch.substring(7,9)); var expireminute = Number(datetimematch.substring(9,11)); var expiretimeobject = new Date(expireyear,expiremonth,expireday,expirehour,expireminute); var expiretime = expiretimeobject.valueOf() - 18000000; //Subtract 5 hours to obtain CDT //alert(expiretime); //if (currenttime > expiretime) { //Test code if (currenttime <= expiretime) { //Live code if (ewwmatch) { $j("#ewwsection").html('Extreme Wind Warning issued by NWS '+fullname+''); //html = '

    '+data+'

    '; //$j("#ewwtext").html(html); //$j("#ewwsection").html('Extreme Wind Warning issued by '+fullname+''); $j("#ewwsection").show(); } else { $j("#ewwsection").hide(); }; } else { $j("#ewwsection").hide(); } }); if ( basin == "at" ) { $j("#outlooktableEP").hide(); $j("#firewx").hide(); //$j("#EWW").show(); } else { $j("#outlooktableAT").hide(); $j("#firewx").show(); //$j("#EWW").hide(); }; $j("#tabs").on( "tabsactivate", function( event, ui ) { if (ui.newTab.index() == 0) { $j("#peaksurge1").css("display", "none"); $j("#peaksurge2").css("display", "none"); $j("#peaksurge3").css("display", "none"); $j("#peaksurge4").css("display", "none"); $j("#peaksurge5").css("display", "none"); $j("#stormsurgemap").css("display", "block"); $j("#stormcentricqpf1").css("display", "none"); $j("#stormcentricqpf2").css("display", "none"); $j("#stormcentricqpf3").css("display", "none"); $j("#stormcentricqpf4").css("display", "none"); $j("#stormcentricqpf5").css("display", "none"); $j("#spcwpcmap").css("display", "block"); } else if (ui.newTab.index() == 1) { //pomap.invalidateSize(false); //stormsurgeww.invalidateSize(false); //ssmap.invalidateSize(false); clearTimeout(radartimer); clearTimeout(sattimer); clearTimeout(radarlooptimer); if (test) { radarmap.remove(); test=false; }; var coastalWFO = ['bro','crp','hgx','lch','lix','mob','tae','tbw','key','mfl','mlb','jax','chs','ilm','mhx','akq','lwx','phi','okx','box','gyx','car']; //var coastalWFOfcst = ['bro','crp','hgx','lch','lix','mob','tae','tbw','key','mfl','mlb','jax','chs','ilm','mhx','akq','lwx','phi','okx','box','gyx','car']; var originalriverobstext; var originalriverfcsttext; for (i = 0; i < coastalWFO.length; i++) { if (officelower == coastalWFO[i]) { originalriverobstext = "River and Coastal Observations for the NWS Office in "; originalriverfcsttext = "River and Coastal Forecasts for the NWS Office in "; break; } else { originalriverobstext = "River Observations for the NWS Office in "; originalriverfcsttext = "River Forecasts for the NWS Office in "; } }; var originalriverobshref = $j("#riverobs").attr('href'); var newriverobshref = originalriverobshref.replace(/ahps\//g, "ahps2/index.php?wfo="+office); //alert(fullname); $j("#riverobs").attr('href',newriverobshref); //var originalriverobstext = "River Observations for the NWS Office in "; if (fullname != "National Hurricane Center") { $j("#riverobs").text(originalriverobstext+fullname); //$j("#riverobsli").show(); } else { $j("#riverobs").text("National River Observations"); // $j("#riverobs").text(originalriverobstext+fullname); $j("#riverobs").attr('href',originalriverobshref); //$j("#riverobsli").hide(); }; var originalriverfcsthref = $j("#riverfcst").attr('href'); var newriverfcsthref = originalriverfcsthref.replace(/ahps\/forecasts.php/g, "ahps2/forecasts.php?wfo="+office); //alert(fullname); $j("#riverfcst").attr('href',newriverfcsthref); //var originalriverfcsttext = "River Forecasts for the NWS Office in "; if (fullname != "National Hurricane Center") { $j("#riverfcst").text(originalriverfcsttext+fullname); //$j("#riverobsli").show(); } else { $j("#riverfcst").text("National River Forecasts"); $j("#riverfcst").attr('href',originalriverfcsthref); //$j("#riverobsli").hide(); }; if (fullname != "National Hurricane Center") { var originalpreciphref = $j("#precip").attr('href', 'https://water.noaa.gov/precip/?location_type=wfo&location_name='+office); var originalpreciptext = "Observed Rainfall for the NWS Office in "; $j("#precip").text(originalpreciptext+fullname); //$j("#riverobsli").show(); } else { var originalpreciphref = $j("#precip").attr('href', 'https://water.noaa.gov/precip/'); $j("#precip").text("National Observed Rainfall"); //$j("#precip").attr('href',originalpreciphref); //$j("#riverobsli").hide(); }; if (map==null) { //ssmap = new L.map("stormsurgemap").setView([latitude, longitude], zoom); map = new L.map("spcwpcmap").setView([latitude, longitude], zoom); } else { //map.off(); //ssmap.off(); map.eachLayer(function (layer) { map.removeLayer(layer); }); //ssmap.remove(); map.remove(); //console.log("mike"); /*html = $j("#ssmapcontainer").html(); $j("#ssmapcontainer").html(""); $j("#ssmapcontainer").html(html); html = $j("#surgeslidersection").html(); $j("#surgeslidersection").html(""); $j("#surgeslidersection").html(html); html = $j("#surgeform").html(); $j("#surgeform").html(""); $j("#surgeform").html(html); */ html = $j("#mapcontainer").html(); $j("#mapcontainer").html(""); $j("#mapcontainer").html(html); html = $j("#slidersection").html(); $j("#slidersection").html(""); $j("#slidersection").html(html); html = $j("#wpcspcform").html(); $j("#wpcspcform").html(""); $j("#wpcspcform").html(html); //ssmap = new L.map("stormsurgemap").setView([latitude, longitude], zoom); map = new L.map("spcwpcmap").setView([latitude, longitude], zoom); //$j("#wpcday1qpf").prop('checked', true); }; if (ssmap==null) { ssmap = new L.map("stormsurgemap").setView([latitude, longitude], zoom); //map = new L.map("spcwpcmap").setView([latitude, longitude], zoom); } else { //map.off(); //ssmap.off(); /*ssmap.eachLayer(function (layer) { ssmap.removeLayer(layer); });*/ ssmap.remove(); //map.remove(); html = $j("#ssmapcontainer").html(); $j("#ssmapcontainer").html(""); $j("#ssmapcontainer").html(html); html = $j("#surgeslidersection").html(); $j("#surgeslidersection").html(""); $j("#surgeslidersection").html(html); html = $j("#surgeform").html(); $j("#surgeform").html(""); $j("#surgeform").html(html); /*html = $j("#mapcontainer").html(); $j("#mapcontainer").html(""); $j("#mapcontainer").html(html); html = $j("#slidersection").html(); $j("#slidersection").html(""); $j("#slidersection").html(html); html = $j("#spcwpcform").html(); $j("#spcwpcform").html(""); $j("#spcwpcform").html(html); */ ssmap = new L.map("stormsurgemap").setView([latitude, longitude], zoom); //map = new L.map("spcwpcmap").setView([latitude, longitude], zoom); }; if (firemap==null) { firemap = new L.map("spcfiremap").setView([latitude, longitude], zoom); } else { firemap.remove(); html = $j("#firemapcontainer").html(); $j("#firemapcontainer").html(""); $j("#firemapcontainer").html(html); html = $j("#fireslidersection").html(); $j("#fireslidersection").html(""); $j("#fireslidersection").html(html); html = $j("#spcfireform").html(); $j("#spcfireform").html(""); $j("#spcfireform").html(html); firemap = new L.map("spcfiremap").setView([latitude, longitude], zoom); }; //var map = L.map("spcwpcmap").setView([latitude, longitude], zoom); var oceanslabel = L.esri.basemapLayer('OceansLabels', { detectRetina: true}); var graylabel = L.esri.basemapLayer('GrayLabels', { detectRetina: true}); var darkgraylabel = L.esri.basemapLayer('DarkGrayLabels', { detectRetina: true}); var imagerylabel = L.esri.basemapLayer('ImageryLabels', { detectRetina: true}); var imagerytransportationlabel = L.esri.basemapLayer('ImageryTransportation', { detectRetina: true}); var shadedrelieflabel = L.esri.basemapLayer('ShadedReliefLabels', { detectRetina: true}); var terrainlabel = L.esri.basemapLayer('TerrainLabels', { detectRetina: true}); var oceanslabels = L.esri.basemapLayer('OceansLabels', { detectRetina: true}); var graylabels = L.esri.basemapLayer('GrayLabels', { detectRetina: true}); var darkgraylabels = L.esri.basemapLayer('DarkGrayLabels', { detectRetina: true}); var imagerylabels = L.esri.basemapLayer('ImageryLabels', { detectRetina: true}); var imagerytransportationlabels = L.esri.basemapLayer('ImageryTransportation', { detectRetina: true}); var shadedrelieflabels = L.esri.basemapLayer('ShadedReliefLabels', { detectRetina: true}); var terrainlabels = L.esri.basemapLayer('TerrainLabels', { detectRetina: true}); var oceanslabelf = L.esri.basemapLayer('OceansLabels', { detectRetina: true}); var graylabelf = L.esri.basemapLayer('GrayLabels', { detectRetina: true}); var darkgraylabelf = L.esri.basemapLayer('DarkGrayLabels', { detectRetina: true}); var imagerylabelf = L.esri.basemapLayer('ImageryLabels', { detectRetina: true}); var imagerytransportationlabelf = L.esri.basemapLayer('ImageryTransportation', { detectRetina: true}); var shadedrelieflabelf = L.esri.basemapLayer('ShadedReliefLabels', { detectRetina: true}); var terrainlabelf = L.esri.basemapLayer('TerrainLabels', { detectRetina: true}); /*var cwaLayer = new L.tileLayer.wms('https://nowcoast.noaa.gov/arcgis/services/nowcoast/mapoverlays_admin_fedgov/MapServer/WMSServer?', { layers: '8', format: 'image/png', transparent: true, });*/ var cwaLayer = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/static/services/nws_reference_maps/nws_reference_map/MapServer/WMSServer?' , { layers: '9', format: 'image/png', transparent: true, }); var countiesLayer = new L.tileLayer.wms('https://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_Current/MapServer/WMSServer?', { layers: 'Counties', format: 'image/png', transparent: true, }); /*var cwaLayerf = new L.tileLayer.wms('https://nowcoast.noaa.gov/arcgis/services/nowcoast/mapoverlays_admin_fedgov/MapServer/WMSServer?', { layers: '8', format: 'image/png', transparent: true, }); */ var cwaLayers = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/static/services/nws_reference_maps/nws_reference_map/MapServer/WMSServer?' , { layers: '9', format: 'image/png', transparent: true, }); var countiesLayers = new L.tileLayer.wms('https://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_Current/MapServer/WMSServer?', { layers: 'Counties', format: 'image/png', transparent: true, }); var cwaLayerf = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/static/services/nws_reference_maps/nws_reference_map/MapServer/WMSServer?' , { layers: '9', format: 'image/png', transparent: true, }); var countiesLayerf = new L.tileLayer.wms('https://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_Current/MapServer/WMSServer?', { layers: 'Counties', format: 'image/png', transparent: true, }); var ssstreets = L.esri.basemapLayer('Streets', { detectRetina: true }); var sstopographic = L.esri.basemapLayer('Topographic', { detectRetina: true }); var ssnatgeo = L.esri.basemapLayer('NationalGeographic', { detectRetina: true }); var ssoceans = L.esri.basemapLayer('Oceans', { detectRetina: true }); var ssgray = L.esri.basemapLayer('Gray', { detectRetina: true }); var ssdarkgray = L.esri.basemapLayer('DarkGray', { detectRetina: true }); var ssimagery = L.esri.basemapLayer('Imagery', { detectRetina: true }); var ssshadedrelief = L.esri.basemapLayer('ShadedRelief', { detectRetina: true }); var ssusatopo = L.esri.basemapLayer('USATopo', { detectRetina: true }); var streets = L.esri.basemapLayer('Streets', { detectRetina: true }); var topographic = L.esri.basemapLayer('Topographic', { detectRetina: true }); var natgeo = L.esri.basemapLayer('NationalGeographic', { detectRetina: true }); var oceans = L.esri.basemapLayer('Oceans', { detectRetina: true }); var gray = L.esri.basemapLayer('Gray', { detectRetina: true }); var darkgray = L.esri.basemapLayer('DarkGray', { detectRetina: true }); var imagery = L.esri.basemapLayer('Imagery', { detectRetina: true }); var shadedrelief = L.esri.basemapLayer('ShadedRelief', { detectRetina: true }); var usatopo = L.esri.basemapLayer('USATopo', { detectRetina: true }); var streetsf = L.esri.basemapLayer('Streets', { detectRetina: true }); var topographicf = L.esri.basemapLayer('Topographic', { detectRetina: true }); var natgeof = L.esri.basemapLayer('NationalGeographic', { detectRetina: true }); var oceansf = L.esri.basemapLayer('Oceans', { detectRetina: true }); var grayf = L.esri.basemapLayer('Gray', { detectRetina: true }); var darkgrayf = L.esri.basemapLayer('DarkGray', { detectRetina: true }); var imageryf = L.esri.basemapLayer('Imagery', { detectRetina: true }); var shadedrelieff = L.esri.basemapLayer('ShadedRelief', { detectRetina: true }); var usatopof = L.esri.basemapLayer('USATopo', { detectRetina: true }); streets.addTo(map), L.control.groupedLayers({ //'Streets': L.esri.basemapLayer('Streets', { detectRetina: true }).addTo(map), 'Streets': streets, 'Topographic': topographic, 'National Geographic': natgeo, 'Oceans': oceans, 'Gray': gray, 'Dark Gray': darkgray, 'Imagery': imagery, 'Shaded Relief': shadedrelief, 'USATopo' : usatopo }, { "Overlays" : { 'Oceans Labels': oceanslabel, 'Gray Labels': graylabel, 'Dark Gray Labels': darkgraylabel, 'Imagery Labels': imagerylabel, 'Imagery Transportation Labels': imagerytransportationlabel, 'Shaded Relief Labels': shadedrelieflabel, 'Terrain Labels': terrainlabel, 'Counties': countiesLayer, 'County Warning Areas': cwaLayer } }).addTo(map); ssstreets.addTo(ssmap), L.control.groupedLayers({ //'Streets': L.esri.basemapLayer('Streets', { detectRetina: true }).addTo(map), 'Streets': ssstreets, 'Topographic': sstopographic, 'National Geographic': ssnatgeo, 'Oceans': ssoceans, 'Gray': ssgray, 'Dark Gray': ssdarkgray, 'Imagery': ssimagery, 'Shaded Relief': ssshadedrelief, 'USATopo' : ssusatopo }, { "Overlays" : { 'Oceans Labels': oceanslabels, 'Gray Labels': graylabels, 'Dark Gray Labels': darkgraylabels, 'Imagery Labels': imagerylabels, 'Imagery Transportation Labels': imagerytransportationlabels, 'Shaded Relief Labels': shadedrelieflabels, 'Terrain Labels': terrainlabels, 'Counties': countiesLayers, 'County Warning Areas': cwaLayers } }).addTo(ssmap); streetsf.addTo(firemap), L.control.groupedLayers({ 'Streets': streetsf, 'Topographic': topographicf, 'National Geographic': natgeof, 'Oceans': oceansf, 'Gray': grayf, 'Dark Gray': darkgrayf, 'Imagery': imageryf, 'Shaded Relief': shadedrelieff, 'USATopo' : usatopof }, { "Overlays" : { 'Oceans Labels': oceanslabelf, 'Gray Labels': graylabelf, 'Dark Gray Labels': darkgraylabelf, 'Imagery Labels': imagerylabelf, 'Imagery Transportation Labels': imagerytransportationlabelf, 'Shaded Relief Labels': shadedrelieflabelf, 'Terrain Labels': terrainlabelf, 'Counties': countiesLayerf, 'County Warning Areas': cwaLayerf } }).addTo(firemap); // AWS Storm Surge Watch, Storm Surge Warning /*var stormsurgewatchwarning = L.esri.dynamicMapLayer({ url: 'https://mapservices.weather.noaa.gov/eventdriven/rest/services/WWA/watch_warn_adv/MapServer/', //New Amazon Web Services (AWS) //url: 'https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS_Forecasts_Guidance_Warnings/watch_warn_adv/MapServer', //Old IDP Services turned off on June 29, 2023 layers: [1], //No Potential Storm Surge Flooding Map Boundary layerDefs: {1:"prod_type='Small Craft Advisory'"}, //Test //layerDefs: {1:"prod_type='Storm Surge Watch' OR prod_type='Storm Surge Warning'"}, transparent: true, format: 'png24', opacity: 0.6, f: 'image', useCors: 'false', disableCache: 'true', zIndex: 99999 }); */ // NOAA nowCOAST Storm Surge Watch, Storm Surge Warning /*var stormsurgewatchwarning = L.esri.dynamicMapLayer({ url: 'https://nowcoast.noaa.gov/arcgis/rest/services/nowcoast/wwa_meteoceanhydro_longduration_hazards_time/MapServer', //url: 'https://mapservices.weather.noaa.gov/eventdriven/rest/services/WWA/watch_warn_adv/MapServer/', //New Amazon Web Services (AWS) //url: 'https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS_Forecasts_Guidance_Warnings/watch_warn_adv/MapServer', //Old IDP Services turned off on June 29, 2023 layers: [32], //Test //layers: [16], //Live layerDefs: {32:"prod_type='Winter Weather Advisory'"}, //Test //layerDefs: {16:"prod_type='Storm Surge Watch' OR prod_type='Storm Surge Warning'"}, //Live transparent: true, format: 'png24', opacity: 0.6, f: 'image', useCors: 'false', disableCache: 'true', zIndex: 99999 }); */ // Storm Surge Watch, Storm Surge Warning, Coastal Flood Statement, Coastal Flood Advisory, Coastal Flood Watch, Coastal Flood Warning var coastalfloodhazards = L.esri.dynamicMapLayer({ //url: 'https://nowcoast.noaa.gov/arcgis/rest/services/nowcoast/wwa_meteoceanhydro_longduration_hazards_time/MapServer', //NOAA nowCOAST url: 'https://mapservices.weather.noaa.gov/eventdriven/rest/services/WWA/watch_warn_adv/MapServer', //New Amazon Web Services (AWS) //url: 'https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS_Forecasts_Guidance_Warnings/watch_warn_adv/MapServer', //Old IDP Services turned off on June 29, 2023 //layers: [1], //Test layers: [1], //Live //layerDefs: {1:"prod_type='Gale Warning'"}, //Test layerDefs: {1:"prod_type='Storm Surge Watch' OR prod_type='Storm Surge Warning' OR prod_type='Coastal Flood Statement' OR prod_type='Coastal Flood Advisory' OR prod_type='Coastal Flood Watch' OR prod_type='Coastal Flood Warning'"}, //Live transparent: true, format: 'png24', opacity: 0.7, f: 'image', //useCors: 'false', //disableCache: 'true', zIndex: 99999 }); coastalfloodhazards.bindPopup(function(err, featureCollection, response){ if (err || featureCollection.features.length === 0){ return false; } else { //console.log(featureCollection); return featureCollection.features[0].properties.prod_type; } }); // Potential Inundation for AT1,AT2,AT3,AT4,AT5 /*var potstormsurge = L.esri.dynamicMapLayer({ url: 'https://mapservices.weather.noaa.gov/tropical/rest/services/tropical/NHC_tropical_weather/MapServer', //New Amazon Web Services (AWS) //url: 'https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS_Forecasts_Guidance_Warnings/watch_warn_adv/MapServer', layers: [25,51,77,103,129], //Potential Storm Surge for AT1,AT2,AT3,AT4,AT5 //layerDefs: {1:"prod_type='Flood Warning'"}, transparent: true, format: 'png24', opacity: 0.6, f: 'image', useCors: 'false', disableCache: 'true', zIndex: 99999 }); */ // Potential Inundation for AT1,AT2,AT3,AT4,AT5 var potstormsurge = L.esri.dynamicMapLayer({ url: 'https://mapservices.weather.noaa.gov/tropical/rest/services/tropical/NHC_tropical_weather_summary/MapServer', //New Amazon Web Services (AWS) //url: 'https://idpgis.ncep.noaa.gov/arcgis/rest/services/NWS_Forecasts_Guidance_Warnings/watch_warn_adv/MapServer', layers: [24], //Potential Storm Surge //layerDefs: {1:"prod_type='Flood Warning'"}, transparent: true, format: 'png24', opacity: 0.7, f: 'image', //useCors: 'false', //disableCache: 'true', zIndex: 99999 }); /*potstormsurge.bindPopup(function(err, featureCollection, response){ if (err || featureCollection.features.length === 0){ return false; } else { //console.log(featureCollection); return featureCollection.features[0].properties.prod_type; } }); */ // NOAA nowCOAST Operational Potential Inundation Flooding Map /*var potstormsurge = L.esri.dynamicMapLayer({ url: 'https://nowcoast.noaa.gov/arcgis/rest/services/nowcoast/wwa_meteocean_tropicalcyclones_inundation/MapServer', //layers: [0,1,9], // Potential Storm Surge Flooding Map Boundary layers: [1,9], // No Potential Storm Surge Flooding Map Boundary transparent: true, format: 'png24', opacity: 0.6, f: 'image', useCors: 'false', disableCache: 'true', zIndex: 99999 }); potstormsurge.bindPopup(function(err, featureCollection, response){ if (err || featureCollection.features.length === 0){ return false; } else { //console.log(featureCollection); return featureCollection.features[0].properties.displaylbl; } }); */ //Old IDP service - Discontinued on June 29, 2023 /*var wpcday1qpf = new L.tileLayer.wms('https://idpgis.ncep.noaa.gov/arcgis/services/NWS_Forecasts_Guidance_Warnings/wpc_qpf/MapServer/WMSServer', { layers: '25', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'IDP' }); */ var wpcday1qpf = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer', { layers: '25', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); //var latlng = L.latLng(latitude,longitude); //console.log(latlng); var wpcday2qpf = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer', { layers: '24', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var wpcday3qpf = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer', { layers: '23', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var wpcday45qpf = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer', { layers: '22', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var wpcday67qpf = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer', { layers: '21', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); // Old IDP service - Discontinued on June 29, 2023 /*var wpceroday1 = new L.tileLayer.wms('https://idpgis.ncep.noaa.gov/arcgis/services/NWS_Forecasts_Guidance_Warnings/wpc_precip_hazards/MapServer/WMSServer', { layers: '2', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'IDP' }); */ var wpceroday1 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer', { layers: '4', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var wpceroday2 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer', { layers: '3', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var wpceroday3 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer', { layers: '2', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var wpceroday4 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer', { layers: '1', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var wpceroday5 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer', { layers: '0', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); /*var wpceroday4 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/experimental/services/wpc_precip_hazards/MapServer/WMSServer', { layers: '1', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var wpceroday5 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/experimental/services/wpc_precip_hazards/MapServer/WMSServer', { layers: '0', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); */ var spcday1outlook = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/outlooks/SPC_wx_outlks/MapServer/WMSServer', { layers: '25', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var spcday2outlook = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/outlooks/SPC_wx_outlks/MapServer/WMSServer', { layers: '17', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var spcday3outlook = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/outlooks/SPC_wx_outlks/MapServer/WMSServer', { layers: '9', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var spcfireday1 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/fire_weather/SPC_firewx/MapServer/WMSServer', { layers: '23', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var spcfireday2 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/fire_weather/SPC_firewx/MapServer/WMSServer', { layers: '20', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var spcfireday3 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/fire_weather/SPC_firewx/MapServer/WMSServer', { layers: '17', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var spcfireday4 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/fire_weather/SPC_firewx/MapServer/WMSServer', { layers: '14', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); var spcfireday5 = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/vector/services/fire_weather/SPC_firewx/MapServer/WMSServer', { layers: '11', format: 'image/png', transparent: true, opacity: 0.7, attribution: 'NWS' }); $j("#slider").change(function() { value = $j(this).val(); //alert(value); wpcday1qpf.setOpacity(value); wpcday2qpf.setOpacity(value); wpcday3qpf.setOpacity(value); wpcday45qpf.setOpacity(value); wpcday67qpf.setOpacity(value); wpceroday1.setOpacity(value); wpceroday2.setOpacity(value); wpceroday3.setOpacity(value); wpceroday4.setOpacity(value); wpceroday5.setOpacity(value); spcday1outlook.setOpacity(value); spcday2outlook.setOpacity(value); spcday3outlook.setOpacity(value); }); $j("#surgeslider").change(function() { surgevalue = $j(this).val(); //console.log("surgeslider value is"+surgevalue); //console.log("potstormsurge is "+potstormsurge); //console.log("coastalfloodhazards is "+coastalfloodhazards); //stormsurgewatchwarning.setOpacity(value); coastalfloodhazards.setOpacity(surgevalue); potstormsurge.setOpacity(surgevalue); }); $j("#fireslider").change(function() { value = $j(this).val(); spcfireday1.setOpacity(value); spcfireday2.setOpacity(value); spcfireday3.setOpacity(value); spcfireday4.setOpacity(value); spcfireday5.setOpacity(value); }); function detectIE() { var ua = window.navigator.userAgent; var msie = ua.indexOf('MSIE '); if (msie > 0) { // IE 10 or older => return version number return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10); } var trident = ua.indexOf('Trident/'); if (trident > 0) { // IE 11 => return version number var rv = ua.indexOf('rv:'); return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10); } var edge = ua.indexOf('Edge/'); if (edge > 0) { // Edge (IE 12+) => return version number return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10); } // other browser return false; }; //alert('IE ' + detectIE()); if (detectIE()) { //alert("IE"); $j('#spcwpcmap .leaflet-control-layers-selector').click(function() { this.blur(); this.focus(); if (map.hasLayer(streets)) { streets.bringToBack(); map.removeLayer(topographic); map.removeLayer(natgeo); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("streets"); } else if (map.hasLayer(topographic)) { topographic.bringToBack(); map.removeLayer(streets); map.removeLayer(natgeo); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("topographic"); } else if (map.hasLayer(natgeo)) { natgeo.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("natgeo"); } else if (map.hasLayer(oceans)) { oceans.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(natgeo); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("oceans"); } else if (map.hasLayer(gray)) { gray.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(natgeo); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); } else if (map.hasLayer(darkgray)) { darkgray.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(natgeo); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); } else if (map.hasLayer(imagery)) { imagery.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(natgeo); map.removeLayer(shadedrelief); map.removeLayer(usatopo); } else if (map.hasLayer(shadedrelief)) { shadedrelief.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(natgeo); map.removeLayer(usatopo); } else if (map.hasLayer(usatopo)) { usatopo.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(natgeo); //usatopo.bringToBack(); }; }); } else if (navigator.userAgent.indexOf("Safari") != -1) { $j('#spcwpcmap .leaflet-control-layers-selector').click(function() { this.blur(); this.focus(); if (map.hasLayer(streets)) { streets.bringToBack(); map.removeLayer(topographic); map.removeLayer(natgeo); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("streets"); } else if (map.hasLayer(topographic)) { topographic.bringToBack(); map.removeLayer(streets); map.removeLayer(natgeo); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("topographic"); } else if (map.hasLayer(natgeo)) { natgeo.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("natgeo"); } else if (map.hasLayer(oceans)) { oceans.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(natgeo); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("oceans"); } else if (map.hasLayer(gray)) { gray.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(natgeo); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); } else if (map.hasLayer(darkgray)) { darkgray.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(natgeo); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); } else if (map.hasLayer(imagery)) { imagery.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(natgeo); map.removeLayer(shadedrelief); map.removeLayer(usatopo); } else if (map.hasLayer(shadedrelief)) { shadedrelief.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(natgeo); map.removeLayer(usatopo); } else if (map.hasLayer(usatopo)) { usatopo.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(natgeo); //usatopo.bringToBack(); }; }); } else { $j('#spcwpcmap .leaflet-control-layers-selector').change(function() { if (map.hasLayer(streets)) { streets.bringToBack(); map.removeLayer(topographic); map.removeLayer(natgeo); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("streets"); } else if (map.hasLayer(topographic)) { topographic.bringToBack(); map.removeLayer(streets); map.removeLayer(natgeo); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("topographic"); } else if (map.hasLayer(natgeo)) { natgeo.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("natgeo"); } else if (map.hasLayer(oceans)) { oceans.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(natgeo); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); //alert("oceans"); } else if (map.hasLayer(gray)) { gray.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(natgeo); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); } else if (map.hasLayer(darkgray)) { darkgray.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(natgeo); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(usatopo); } else if (map.hasLayer(imagery)) { imagery.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(natgeo); map.removeLayer(shadedrelief); map.removeLayer(usatopo); } else if (map.hasLayer(shadedrelief)) { shadedrelief.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(natgeo); map.removeLayer(usatopo); } else if (map.hasLayer(usatopo)) { usatopo.bringToBack(); map.removeLayer(streets); map.removeLayer(topographic); map.removeLayer(oceans); map.removeLayer(gray); map.removeLayer(darkgray); map.removeLayer(imagery); map.removeLayer(shadedrelief); map.removeLayer(natgeo); //usatopo.bringToBack(); }; }); }; if (detectIE()) { //alert("IE"); $j('#stormsurgemap .leaflet-control-layers-selector').click(function() { this.blur(); this.focus(); if (ssmap.hasLayer(ssstreets)) { ssstreets.bringToBack(); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); //alert("streets"); } else if (ssmap.hasLayer(sstopographic)) { sstopographic.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); //alert("topographic"); } else if (ssmap.hasLayer(ssnatgeo)) { ssnatgeo.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(sssatopo); //alert("natgeo"); } else if (ssmap.hasLayer(ssoceans)) { ssoceans.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); //alert("oceans"); } else if (ssmap.hasLayer(ssgray)) { ssgray.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssdarkgray)) { ssdarkgray.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssimagery)) { ssimagery.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssshadedrelief)) { ssshadedrelief.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssusatopo)) { ssusatopo.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssnatgeo); //usatopo.bringToBack(); }; }); } else if (navigator.userAgent.indexOf("Safari") != -1) { $j('#stormsurgemap .leaflet-control-layers-selector').click(function() { this.blur(); this.focus(); if (ssmap.hasLayer(ssstreets)) { ssstreets.bringToBack(); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); //alert("streets"); } else if (ssmap.hasLayer(sstopographic)) { sstopographic.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); //alert("topographic"); } else if (ssmap.hasLayer(ssnatgeo)) { ssnatgeo.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(sssatopo); //alert("natgeo"); } else if (ssmap.hasLayer(ssoceans)) { ssoceans.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); //alert("oceans"); } else if (ssmap.hasLayer(ssgray)) { ssgray.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssdarkgray)) { ssdarkgray.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssimagery)) { ssimagery.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssshadedrelief)) { ssshadedrelief.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssusatopo)) { ssusatopo.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssnatgeo); //usatopo.bringToBack(); }; }); } else { $j('#stormsurgemap .leaflet-control-layers-selector').change(function() { if (ssmap.hasLayer(ssstreets)) { ssstreets.bringToBack(); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); //alert("streets"); } else if (ssmap.hasLayer(sstopographic)) { sstopographic.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); //alert("topographic"); } else if (ssmap.hasLayer(ssnatgeo)) { ssnatgeo.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(sssatopo); //alert("natgeo"); } else if (ssmap.hasLayer(ssoceans)) { ssoceans.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); //alert("oceans"); } else if (ssmap.hasLayer(ssgray)) { ssgray.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssdarkgray)) { ssdarkgray.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssimagery)) { ssimagery.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssshadedrelief)) { ssshadedrelief.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssnatgeo); ssmap.removeLayer(ssusatopo); } else if (ssmap.hasLayer(ssusatopo)) { ssusatopo.bringToBack(); ssmap.removeLayer(ssstreets); ssmap.removeLayer(sstopographic); ssmap.removeLayer(ssoceans); ssmap.removeLayer(ssgray); ssmap.removeLayer(ssdarkgray); ssmap.removeLayer(ssimagery); ssmap.removeLayer(ssshadedrelief); ssmap.removeLayer(ssnatgeo); //usatopo.bringToBack(); }; }); }; var now = new Date(); var hour = now.getUTCHours(); var hour = Number(hour); //alert(hour); var daynumber = Number(now.getDay()); var day1; var day2; var day3; var day4; var day5; var day6; var day7; switch (daynumber) { case 0: day1 = "Sunday"; day2 = "Monday"; day3 = "Tuesday"; day4 = "Wednesday"; day5 = "Thursday"; day6 = "Friday"; day7 = "Saturday"; break; case 1: day1 = "Monday"; day2 = "Tuesday"; day3 = "Wednesday"; day4 = "Thursday"; day5 = "Friday"; day6 = "Saturday"; day7 = "Sunday"; break; case 2: day1 = "Tuesday"; day2 = "Wednesday"; day3 = "Thursday"; day4 = "Friday"; day5 = "Saturday"; day6 = "Sunday"; day7 = "Monday"; break; case 3: day1 = "Wednesday"; day2 = "Thursday"; day3 = "Friday"; day4 = "Saturday"; day5 = "Sunday"; day6 = "Monday"; day7 = "Tuesday"; break; case 4: day1 = "Thursday"; day2 = "Friday"; day3 = "Saturday"; day4 = "Sunday"; day5 = "Monday"; day6 = "Tuesday"; day7 = "Wednesday"; break; case 5: day1 = "Friday"; day2 = "Saturday"; day3 = "Sunday"; day4 = "Monday"; day5 = "Tuesday"; day6 = "Wednesday"; day7 = "Thursday"; break; case 6: day1 = "Saturday"; day2 = "Sunday"; day3 = "Monday"; day4 = "Tuesday"; day5 = "Wednesday"; day6 = "Thursday"; day7 = "Friday"; break; }; var day1qpf; var day2qpf; var day3qpf; var day45qpf; var day67qpf; var eroday1; var eroday2; var eroday3; var eroday4; var eroday5; var day1spc; var day2spc; var day3spc; //alert(hour); if (hour < 18 && hour >= 5) { day1qpf = " (" + day1 + " Morning through " + day2 + " Morning)"; day2qpf = " (" + day2 + " Morning through " + day3 + " Morning)"; day3qpf = " (" + day3 + " Morning through " + day4 + " Morning)"; } else if (hour < 5) { day1qpf = " (" + day1 + " Evening through " + day2 + " Evening)"; day2qpf = " (" + day2 + " Evening through " + day3 + " Evening)"; day3qpf = " (" + day3 + " Evening through " + day4 + " Evening)"; } else { day1qpf = " (" + day1 + " Afternoon through " + day2 + " Evening)"; day2qpf = " (" + day2 + " Evening through " + day3 + " Evening)"; day3qpf = " (" + day3 + " Evening through " + day4 + " Evening)"; }; if (hour < 19 && hour >= 5) { day45qpf = " (" + day4 + " Morning through " + day6 + " Morning)"; day67qpf = " (" + day6 + " Morning through " + day1 + " Morning)"; } else { day45qpf = " (" + day4 + " Evening through " + day6 + " Evening)"; day67qpf = " (" + day6 + " Evening through " + day1 + " Evening)"; }; eroday1 = " (" + day1 + " Morning through " + day2 + " Morning)"; eroday2 = " (" + day2 + " Morning through " + day3 + " Morning)"; eroday3 = " (" + day3 + " Morning through " + day4 + " Morning)"; eroday4 = " (" + day4 + " Morning through " + day5 + " Morning)"; eroday5 = " (" + day5 + " Morning through " + day6 + " Morning)"; if (hour <= 17 && hour >= 5) { day1spc = " (" + day1 + " Morning through " + day2 + " Morning)"; day2spc = " (" + day2 + " Morning through " + day3 + " Morning)"; day3spc = " (" + day3 + " Morning through " + day4 + " Morning)"; } else if (hour < 5) { day1spc = " (" + day1 + " Evening through " + day2 + " Morning)"; day2spc = " (" + day2 + " Morning through " + day3 + " Morning)"; day3spc = " (" + day3 + " Morning through " + day4 + " Morning)"; } else { day1spc = " (" + day1 + " Afternoon through " + day2 + " Morning)"; day2spc = " (" + day2 + " Morning through " + day3 + " Morning)"; day3spc = " (" + day3 + " Morning through " + day4 + " Morning)"; }; document.getElementById("wpcspcform").reset(); document.getElementById("surgeform").reset(); //$j("#wpcspcform input").click(function() { $j(document.body).on("click", "#wpcspcform input", function() { //$j("#wpcspcform input").click(function() { if ($j(this).is(':checked')) { //alert($j(this).val()); var mapval = $j(this).val(); //console.log(mapval); switch (mapval) { case "wpcstorm1": $j("#stormcentricqpf1").show(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").hide(); $j(".qpftime").hide(); break; case "wpcstorm2": $j("#stormcentricqpf2").show(); $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").hide(); $j(".qpftime").hide(); break; case "wpcstorm3": $j("#stormcentricqpf3").show(); $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").hide(); $j(".qpftime").hide(); break; case "wpcstorm4": $j("#stormcentricqpf4").show(); $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").hide(); $j(".qpftime").hide(); break; case "wpcstorm5": $j("#stormcentricqpf5").show(); $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#spcwpcmap").hide(); $j(".qpftime").hide(); break; case "wpcday1qpf": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(day1qpf); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday2); map.removeLayer(wpceroday3); map.removeLayer(wpceroday4); map.removeLayer(wpceroday5); map.removeLayer(wpcday67qpf); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday3qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday2outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").show(); $j("#spclegend").hide(); $j("#erolegend").hide(); map.addLayer(wpcday1qpf); wpcday1qpf.bringToFront(); break; case "wpcday2qpf": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(day2qpf); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday2); map.removeLayer(wpceroday3); map.removeLayer(wpceroday4); map.removeLayer(wpceroday5); map.removeLayer(wpcday67qpf); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday3qpf); map.removeLayer(wpcday1qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday2outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").show(); $j("#spclegend").hide(); $j("#erolegend").hide(); map.addLayer(wpcday2qpf); wpcday2qpf.bringToFront(); break; case "wpcday3qpf": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(day3qpf); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday2); map.removeLayer(wpceroday3); map.removeLayer(wpceroday4); map.removeLayer(wpceroday5); map.removeLayer(wpcday67qpf); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday1qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday2outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").show(); $j("#spclegend").hide(); $j("#erolegend").hide(); map.addLayer(wpcday3qpf); wpcday3qpf.bringToFront(); break; case "wpcday45qpf": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(day45qpf); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday2); map.removeLayer(wpceroday3); map.removeLayer(wpceroday4); map.removeLayer(wpceroday5); map.removeLayer(wpcday67qpf); map.removeLayer(wpcday3qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday1qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday2outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").show(); $j("#spclegend").hide(); $j("#erolegend").hide(); map.addLayer(wpcday45qpf); wpcday45qpf.bringToFront(); break; case "wpcday67qpf": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(day67qpf); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday2); map.removeLayer(wpceroday3); map.removeLayer(wpceroday4); map.removeLayer(wpceroday5); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday3qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday1qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday2outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").show(); $j("#spclegend").hide(); $j("#erolegend").hide(); map.addLayer(wpcday67qpf); wpcday67qpf.bringToFront(); break; case "wpceroday1": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(eroday1); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); //urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; urltile= 'https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday3); map.removeLayer(wpceroday2); map.removeLayer(wpceroday4); map.removeLayer(wpceroday5); map.removeLayer(wpcday67qpf); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday3qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday1qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday2outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").hide(); $j("#spclegend").hide(); $j("#erolegend").show(); map.addLayer(wpceroday1); wpceroday1.bringToFront(); break; case "wpceroday2": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(eroday2); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); //urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; urltile= 'https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday3); map.removeLayer(wpceroday4); map.removeLayer(wpceroday5); map.removeLayer(wpcday67qpf); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday3qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday1qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday2outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").hide(); $j("#spclegend").hide(); $j("#erolegend").show(); map.addLayer(wpceroday2); wpceroday2.bringToFront(); break; case "wpceroday3": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(eroday3); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); //urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; urltile= 'https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday2); map.removeLayer(wpceroday4); map.removeLayer(wpceroday5); map.removeLayer(wpcday67qpf); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday3qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday1qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday2outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").hide(); $j("#spclegend").hide(); $j("#erolegend").show(); map.addLayer(wpceroday3); wpceroday3.bringToFront(); break; case "wpceroday4": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(eroday4); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); //urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; //urltile= 'https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer'; urltile = 'https://mapservices.weather.noaa.gov/experimental/services/wpc_precip_hazards/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday2); map.removeLayer(wpceroday3); map.removeLayer(wpceroday5); map.removeLayer(wpcday67qpf); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday3qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday1qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday2outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").hide(); $j("#spclegend").hide(); $j("#erolegend").show(); map.addLayer(wpceroday4); wpceroday4.bringToFront(); break; case "wpceroday5": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(eroday5); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); //urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; //urltile= 'https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer'; urltile = 'https://mapservices.weather.noaa.gov/experimental/services/wpc_precip_hazards/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday2); map.removeLayer(wpceroday3); map.removeLayer(wpceroday4); map.removeLayer(wpcday67qpf); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday3qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday1qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday2outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").hide(); $j("#spclegend").hide(); $j("#erolegend").show(); map.addLayer(wpceroday5); wpceroday5.bringToFront(); break; case "spcday1outlook": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(day1spc); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); //urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; //urltile= 'https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer'; //urltile = 'https://mapservices.weather.noaa.gov/experimental/services/wpc_precip_hazards/MapServer/WMSServer'; urltile = 'https://mapservices.weather.noaa.gov/vector/services/outlooks/SPC_wx_outlks/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday2); map.removeLayer(wpceroday3); map.removeLayer(wpceroday4); map.removeLayer(wpceroday5); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday3qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday1qpf); map.removeLayer(wpcday67qpf); map.removeLayer(spcday2outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").hide(); $j("#spclegend").show(); $j("#erolegend").hide(); map.addLayer(spcday1outlook); spcday1outlook.bringToFront(); break; case "spcday2outlook": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(day2spc); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); //urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; //urltile= 'https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer'; //urltile = 'https://mapservices.weather.noaa.gov/experimental/services/wpc_precip_hazards/MapServer/WMSServer'; urltile = 'https://mapservices.weather.noaa.gov/vector/services/outlooks/SPC_wx_outlks/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday2); map.removeLayer(wpceroday3); map.removeLayer(wpceroday4); map.removeLayer(wpceroday5); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday3qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday1qpf); map.removeLayer(wpcday67qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday3outlook); $j("#wpclegend").hide(); $j("#spclegend").show(); $j("#erolegend").hide(); map.addLayer(spcday2outlook); spcday2outlook.bringToFront(); break; case "spcday3outlook": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").html(day3spc); $j(".qpftime").show(); map.eachLayer(function(layer){ console.log(layer); console.log(layer._url); //urltile = 'https://mapservices.weather.noaa.gov/vector/services/precip/wpc_qpf/MapServer/WMSServer'; //urltile= 'https://mapservices.weather.noaa.gov/vector/services/hazards/wpc_precip_hazards/MapServer/WMSServer'; //urltile = 'https://mapservices.weather.noaa.gov/experimental/services/wpc_precip_hazards/MapServer/WMSServer'; urltile = 'https://mapservices.weather.noaa.gov/vector/services/outlooks/SPC_wx_outlks/MapServer/WMSServer'; url = 'http://{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}'; if (layer._url == urltile) { map.removeLayer(layer); }; }); map.removeLayer(wpceroday1); map.removeLayer(wpceroday2); map.removeLayer(wpceroday3); map.removeLayer(wpceroday4); map.removeLayer(wpceroday5); map.removeLayer(wpcday45qpf); map.removeLayer(wpcday3qpf); map.removeLayer(wpcday2qpf); map.removeLayer(wpcday1qpf); map.removeLayer(wpcday67qpf); map.removeLayer(spcday1outlook); map.removeLayer(spcday2outlook); $j("#wpclegend").hide(); $j("#spclegend").show(); $j("#erolegend").hide(); map.addLayer(spcday3outlook); spcday3outlook.bringToFront(); break; } } else if ($j(this).is(":checked") == false) { var stormunchecked = $j(this).val(); switch (stormunchecked) { case "wpcstorm1": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").hide(); break; case "wpcstorm2": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").hide(); break; case "wpcstorm3": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").hide(); break; case "wpcstorm4": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").hide(); break; case "wpcstorm5": $j("#stormcentricqpf1").hide(); $j("#stormcentricqpf2").hide(); $j("#stormcentricqpf3").hide(); $j("#stormcentricqpf4").hide(); $j("#stormcentricqpf5").hide(); $j("#spcwpcmap").show(); $j(".qpftime").hide(); break; case "wpcday1qpf": $j("#spcwpcmap").show(); map.removeLayer(wpcday1qpf); $j("#wpclegend").hide(); $j(".qpftime").hide(); break; case "wpcday2qpf": $j("#spcwpcmap").show(); map.removeLayer(wpcday2qpf); $j("#wpclegend").hide(); $j(".qpftime").hide(); break; case "wpcday3qpf": $j("#spcwpcmap").show(); map.removeLayer(wpcday3qpf); $j("#wpclegend").hide(); $j(".qpftime").hide(); break; case "wpcday45qpf": $j("#spcwpcmap").show(); map.removeLayer(wpcday45qpf); $j("#wpclegend").hide(); $j(".qpftime").hide(); break; case "wpcday67qpf": $j("#spcwpcmap").show(); map.removeLayer(wpcday67qpf); $j("#wpclegend").hide(); $j(".qpftime").hide(); break; case "wpceroday1": $j("#spcwpcmap").show(); map.removeLayer(wpceroday1); $j("#erolegend").hide(); $j(".qpftime").hide(); break; case "wpceroday2": $j("#spcwpcmap").show(); map.removeLayer(wpceroday2); $j("#erolegend").hide(); $j(".qpftime").hide(); break; case "wpceroday3": $j("#spcwpcmap").show(); map.removeLayer(wpceroday3); $j("#erolegend").hide(); $j(".qpftime").hide(); break; case "wpceroday4": $j("#spcwpcmap").show(); map.removeLayer(wpceroday4); $j("#erolegend").hide(); $j(".qpftime").hide(); break; case "wpceroday5": $j("#spcwpcmap").show(); map.removeLayer(wpceroday5); $j("#erolegend").hide(); $j(".qpftime").hide(); break; case "spcday1outlook": $j("#spcwpcmap").show(); map.removeLayer(spcday1outlook); $j("#spclegend").hide(); $j(".qpftime").hide(); break; case "spcday2outlook": $j("#spcwpcmap").show(); map.removeLayer(spcday2outlook); $j("#spclegend").hide(); $j(".qpftime").hide(); break; case "spcday3outlook": $j("#spcwpcmap").show(); map.removeLayer(spcday3outlook); $j("#spclegend").hide(); $j(".qpftime").hide(); break; } } }); $j(document.body).on("click","#surgeform input", function() { //$j("#surgeform input").click(function() { if ($j(this).is(':checked')) { //alert($j(this).val()); var ssmapval = $j(this).val(); switch (ssmapval) { case "nhcsurge1": $j("#peaksurge1").show(); //alert("Mike"); //$j("#peaksurge1").css("display","block"); $j("#peaksurge2").hide(); $j("#peaksurge3").hide(); $j("#peaksurge4").hide(); $j("#peaksurge5").hide(); $j("#stormsurgemap").hide(); $j("#potstormsurgelegend").hide(); $j("#coastalfloodinghazardslegend").hide(); $j("#stormsurgewatchwarninglegend").hide(); break; case "nhcsurge2": $j("#peaksurge1").hide(); $j("#peaksurge2").show(); $j("#peaksurge3").hide(); $j("#peaksurge4").hide(); $j("#peaksurge5").hide(); $j("#stormsurgemap").hide(); $j("#potstormsurgelegend").hide(); $j("#coastalfloodinghazardslegend").hide(); $j("#stormsurgewatchwarninglegend").hide(); break; case "nhcsurge3": $j("#peaksurge1").hide(); $j("#peaksurge2").hide(); $j("#peaksurge3").show(); $j("#peaksurge4").hide(); $j("#peaksurge5").hide(); $j("#stormsurgemap").hide(); $j("#potstormsurgelegend").hide(); $j("#coastalfloodinghazardslegend").hide(); $j("#stormsurgewatchwarninglegend").hide(); break; case "nhcsurge4": $j("#peaksurge1").hide(); $j("#peaksurge2").hide(); $j("#peaksurge3").hide(); $j("#peaksurge4").show(); $j("#peaksurge5").hide(); $j("#stormsurgemap").hide(); $j("#potstormsurgelegend").hide(); $j("#coastalfloodinghazardslegend").hide(); $j("#stormsurgewatchwarninglegend").hide(); break; case "nhcsurge5": $j("#peaksurge1").hide(); $j("#peaksurge2").hide(); $j("#peaksurge3").hide(); $j("#peaksurge4").hide(); $j("#peaksurge5").show(); $j("#stormsurgemap").hide(); $j("#potstormsurgelegend").hide(); $j("#coastalfloodinghazardslegend").hide(); $j("#stormsurgewatchwarninglegend").hide(); break; case "coastalfloodhazards": $j("#peaksurge1").hide(); $j("#peaksurge2").hide(); $j("#peaksurge3").hide(); $j("#peaksurge4").hide(); $j("#peaksurge5").hide(); $j("#stormsurgemap").show(); ssmap.eachLayer(function(layer) { ssmap.removeLayer(layer); }); coastalfloodhazards.addTo(ssmap); ssstreets.addTo(ssmap); coastalfloodhazards.bringToFront(); $j("#potstormsurgelegend").hide(); $j("#coastalfloodinghazardslegend").show(); $j("#stormsurgewatchwarninglegend").show(); //ssmap.invalidateSize(); ssmap.fitBounds(ssmap.getBounds()); break; case "potstormsurge": $j("#peaksurge1").hide(); $j("#peaksurge2").hide(); $j("#peaksurge3").hide(); $j("#peaksurge4").hide(); $j("#peaksurge5").hide(); $j("#stormsurgemap").show(); ssmap.eachLayer(function(layer) { ssmap.removeLayer(layer); }); potstormsurge.addTo(ssmap); ssstreets.addTo(ssmap); potstormsurge.bringToFront(); $j("#potstormsurgelegend").show(); $j("#coastalfloodinghazardslegend").hide(); $j("#stormsurgewatchwarninglegend").hide(); //ssmap.invalidateSize(); ssmap.fitBounds(ssmap.getBounds()); break; } } else if ($j(this).is(":checked") == false) { var stormunchecked = $j(this).val(); //alert(stormunchecked+" is stormunchecked"); switch (stormunchecked) { case "nhcsurge1": $j("#peaksurge1").hide(); $j("#peaksurge2").hide(); $j("#peaksurge3").hide(); $j("#peaksurge4").hide(); $j("#peaksurge5").hide(); //$j("#stormsurgemap").show(); break; case "nhcsurge2": $j("#peaksurge1").hide(); $j("#peaksurge2").hide(); $j("#peaksurge3").hide(); $j("#peaksurge4").hide(); $j("#peaksurge5").hide(); //$j("#stormsurgemap").show(); break; case "nhcsurge3": $j("#peaksurge1").hide(); $j("#peaksurge2").hide(); $j("#peaksurge3").hide(); $j("#peaksurge4").hide(); $j("#peaksurge5").hide(); //$j("#stormsurgemap").show(); break; case "nhcsurge4": $j("#peaksurge1").hide(); $j("#peaksurge2").hide(); $j("#peaksurge3").hide(); $j("#peaksurge4").hide(); $j("#peaksurge5").hide(); //$j("#stormsurgemap").show(); break; case "nhcsurge5": $j("#peaksurge1").hide(); $j("#peaksurge2").hide(); $j("#peaksurge3").hide(); $j("#peaksurge4").hide(); $j("#peaksurge5").hide(); //$j("#stormsurgemap").show(); break; /*case "stormsurgewatch": //$j(this).prop('checked',false); $j("#stormsurgemap").show(); //alert("test"); ssmap.removeLayer(stormsurgewatch); break; case "stormsurgewarning": $j("#stormsurgemap").show(); ssmap.removeLayer(stormsurgewarning); break; */ case "coastalfloodhazards": $j("#stormsurgemap").show(); /*ssmap.eachLayer(function(layer){ console.log(layer); if (layer._url) { console.log(layer._url); urllayer = layer._url urlstring = "eventdriven"; if (urllayer.match(/eventdriven/gm)) { ssmap.removeLayer(layer); console.log("cotest"); } }; }); */ ssmap.removeLayer(coastalfloodhazards); //coastalfloodhazards.unbindPopup(); break; /*case "coastalfloodadvisory": $j("#stormsurgemap").show(); ssmap.removeLayer(coastalfloodadvisory); break; case "coastalfloodwatch": $j("#stormsurgemap").show(); ssmap.removeLayer(coastalfloodwatch); break; case "coastalfloodwarning": $j("#stormsurgemap").show(); ssmap.removeLayer(coastalfloodwarning); break; */ case "potstormsurge": $j("#stormsurgemap").show(); /*ssmap.eachLayer(function(layer){ console.log(layer); if (layer._url) { console.log(layer._url); urllayer = layer._url urlstring = "tropical"; if (urllayer.match(/tropical/i)) { ssmap.removeLayer(layer); console.log("cotest"); } }; }); */ ssmap.removeLayer(potstormsurge); //potstormsurge.unbindPopup(); break; } } }); $j("#spcfireform input").click(function() { if ($j(this).is(':checked')) { var mapval = $j(this).val(); switch (mapval) { case "spcfireday1": firemap.removeLayer(spcfireday2); firemap.removeLayer(spcfireday3); firemap.removeLayer(spcfireday4); firemap.removeLayer(spcfireday5); firemap.addLayer(spcfireday1); spcfireday1.bringToFront(); break; case "spcfireday2": firemap.removeLayer(spcfireday1); firemap.removeLayer(spcfireday3); firemap.removeLayer(spcfireday4); firemap.removeLayer(spcfireday5); firemap.addLayer(spcfireday2); spcfireday2.bringToFront(); break; case "spcfireday3": firemap.removeLayer(spcfireday1); firemap.removeLayer(spcfireday2); firemap.removeLayer(spcfireday4); firemap.removeLayer(spcfireday5); firemap.addLayer(spcfireday3); spcfireday3.bringToFront(); break; case "spcfireday4": firemap.removeLayer(spcfireday1); firemap.removeLayer(spcfireday2); firemap.removeLayer(spcfireday3); firemap.removeLayer(spcfireday5); firemap.addLayer(spcfireday4); spcfireday4.bringToFront(); break; case "spcfireday5": firemap.removeLayer(spcfireday1); firemap.removeLayer(spcfireday2); firemap.removeLayer(spcfireday3); firemap.removeLayer(spcfireday4); firemap.addLayer(spcfireday5); spcfireday5.bringToFront(); break; } } }); $j("#spcfirelegend").show(); $j('.leaflet-control-attribution').hide(); map.invalidateSize(false); ssmap.invalidateSize(false); } else if (ui.newTab.index() == 2) { $j("#peaksurge1").css("display", "none"); $j("#peaksurge2").css("display", "none"); $j("#peaksurge3").css("display", "none"); $j("#peaksurge4").css("display", "none"); $j("#peaksurge5").css("display", "none"); $j("#stormsurgemap").css("display", "block"); $j("#stormcentricqpf1").css("display", "none"); $j("#stormcentricqpf2").css("display", "none"); $j("#stormcentricqpf3").css("display", "none"); $j("#stormcentricqpf4").css("display", "none"); $j("#stormcentricqpf5").css("display", "none"); $j("#spcwpcmap").css("display", "block"); $j(".tooltipClick").tooltip({ show: true, position: {my:"left bottom", at:"left-100 bottom-40"}, tooltipClass: "htitooltipstyle" }); htimap.invalidateSize(false); clearTimeout(radartimer); clearTimeout(sattimer); if (test) { radarmap.remove(); test=false; }; clearTimeout(radarlooptimer); $j('.leaflet-control-attribution').hide(); } else if (ui.newTab.index() == 3) { $j("#peaksurge1").css("display", "none"); $j("#peaksurge2").css("display", "none"); $j("#peaksurge3").css("display", "none"); $j("#peaksurge4").css("display", "none"); $j("#peaksurge5").css("display", "none"); $j("#stormsurgemap").css("display", "block"); $j("#stormcentricqpf1").css("display", "none"); $j("#stormcentricqpf2").css("display", "none"); $j("#stormcentricqpf3").css("display", "none"); $j("#stormcentricqpf4").css("display", "none"); $j("#stormcentricqpf5").css("display", "none"); $j("#spcwpcmap").css("display", "block"); document.getElementById("wfo").reset(); //document.getElementById("productsform").reset(); //htmlproductsform = '

    '; //htmlproductsformep = '

    '; if ( basin == "at" ) { $j("#productsform").html(htmlproductsform); } else { $j("#productsform").html(htmlproductsformep); //alert(basin); }; $j("#productsform select").val("HLS"); $j("#wfo select").val(officefinal.toLowerCase()); sidtitle = $j("#wfo select").find('option:selected').text(); sid = $j("#wfo select").val(); //alert(typeof(sidtitle)); //var hlsurl = "HLS"+officefinal+".txt"; if (sid == "" || sid === null) { var hlsurl = "/source/srh/tcv/text/HLS/HLSBRO.txt"; } else { var hlsurl = "/source/srh/tcv/text/HLS/HLS"+sid.toUpperCase()+".txt"; }; if (officefinal == 'SJU') { $j("#sjuhlsspn").show(); $j("#sjuhlseng").hide(); //var hlsformurl = "/source/srh/tcv/text/HLS/HLSSJU.txt"; //var hlsurl = "HLSSJU.txt"; $j.ajax({ url: hlsurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf("HLS"); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text("Hurricane Local Statement from the National Weather Service in "+fullname); //$j("#hlstitle").append(fullname); //$j("#hlstitle").append(title); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); if (sidtitle == "" || sidtitle == "Select a National Weather Service office") { $j("#hlstext").html("

    Refer to the National Hurricane Center webpage at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current Hurricane Local Statement exists from the National Weather Service in "+fullname+". For a listing of the current products in effect, please visit www.weather.gov/"+officefinal.toLowerCase()+".

    "); }; } }); //$j("#sjuhlseng").hide(); $j("#sjuhlsspn").click(function() { var hlsspnurl = "/source/srh/tcv/text/HLS/HLSSPN.txt"; //var hlsspnurl = "HLSSPN.txt"; $j.ajax({ url: hlsspnurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf("HLS"); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text("Hurricane Local Statement from the National Weather Service in "+fullname); //$j("#hlstitle").append(title); //$j("#hlstitle").append(fullname); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); //alert(fullname); if (sidtitle == "" || sidtitle == "Select a National Weather Service office") { $j("#hlstext").html("

    Refer to the National Hurricane Center webpage at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current Hurricane Local Statement exists from the National Weather Service in "+fullname+". For a listing of the current products in effect, please visit www.weather.gov/"+officefinal.toLowerCase()+".

    "); }; } }); $j("#sjuhlseng").show(); $j("#sjuhlsspn").hide(); }); $j("#sjuhlseng").click(function() { //var hlsformurl = "/source/srh/tcv/text/HLS/HLSSJU.txt"; //var hlsformurl = "HLSSJU.txt"; $j.ajax({ url: hlsurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf("HLS"); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text("Hurricane Local Statement from the National Weather Service in "+fullname); //$j("#hlstitle").append(fullname); // $j("#hlstitle").append(title); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); pil = $j(this).val("Hurricane Local Statement"); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); //alert(fullname); if (sidtitle == "" || sidtitle == "Select a National Weather Service office") { $j("#hlstext").html("

    Refer to the National Hurricane Center webpage at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current Hurricane Local Statement exists from the National Weather Service in "+fullname+". For a listing of the current products in effect, please visit www.weather.gov/"+officefinal.toLowerCase()+".

    "); }; } }); $j("#sjuhlsspn").show(); $j("#sjuhlseng").hide(); }); } else { $j("#sjuhlseng").hide(); $j("#sjuhlsspn").hide(); $j.ajax({ url: hlsurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf("HLS"); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text("Hurricane Local Statement from the National Weather Service office in "+fullname); //$j("#hlstitle").append(fullname); //$j("#hlstitle").append(title); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); //alert(fullname); if (sidtitle == "" || sidtitle == "Select a National Weather Service office") { $j("#hlstext").html("

    Refer to the National Hurricane Center webpage at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current Hurricane Local Statement exists from the National Weather Service in "+fullname+". For a listing of the current products in effect, please visit www.weather.gov/"+officefinal.toLowerCase()+".

    "); }; //("#hlstext").html("

    No current Hurricane Local Statement exists from the National Weather Service in "+fullname+". For a listing of the current products in effect, please visit www.weather.gov/"+officefinal.toLowerCase()+".

    "); } }) };$j("#productsform select").change(function() { pil = $j(this).val(); sid = $j("#wfo select").val(); if (sid == undefined) { sid = office; sidtitle = fullname; //sid = sid.toLowerCase(); } //pilurl = pil + sid + ".txt"; pilurl = "/source/srh/tcv/text/" + pil + "/" + pil + sid.toUpperCase() + ".txt"; //alert("sid is "+sid); //var hlsformurl = "HLS" + officeupper + ".txt"; // var pshformurl = "/source/srh/tcv/text/PSH" + officeupper + ".txt"; sidtitle = $j("#wfo select").find('option:selected').text(); piltitle = $j(this).find('option:selected').text(); //alert(pilurl); //alert(title); if (sid == 'sju' && pil == 'HLS') { $j("#sjuhlsspn").show(); var hlssjuurl = "/source/srh/tcv/text/HLS/HLSSJU.txt"; //var hlssjuurl = "HLSSJU.txt"; $j.ajax({ url: hlssjuurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf("HLS"); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text("Hurricane Local Statement from the National Weather Service in "+sidtitle); //$j("#hlstitle").append(fullname); //$j("#hlstitle").append(title); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); //alert(fullname); if (piltitle === undefined) { $j("#hlstext").html("

    Refer to the "+fullname+" website at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current "+piltitle+" exists from the National Weather Service in "+sidtitle+". For a listing of the current products in effect, please visit www.weather.gov/"+sid+".

    "); }; } }); //$j("#sjuhlseng").hide(); $j("#sjuhlsspn").click(function() { var hlsspnurl = "/source/srh/tcv/text/HLS/HLSSPN.txt"; //var hlsformurl = "HLSSPN.txt"; //var hlsspnurl = "HLSSPN.txt"; $j.ajax({ url: hlsspnurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf("HLS"); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text("Hurricane Local Statement from the National Weather Service in "+sidtitle); //$j("#hlstitle").append(title); //$j("#hlstitle").append(fullname); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); //alert(fullname); if (piltitle === undefined) { $j("#hlstext").html("

    Refer to the "+fullname+" website at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current "+piltitle+" exists from the National Weather Service in "+sidtitle+". For a listing of the current products in effect, please visit www.weather.gov/"+sid+".

    "); }; } }); $j("#sjuhlseng").show(); $j("#sjuhlsspn").hide(); }); $j("#sjuhlseng").click(function() { var hlssjuurl = "/source/srh/tcv/text/HLS/HLSSJU.txt"; //var hlssjuurl = "HLSSJU.txt"; $j.ajax({ url: hlssjuurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf("HLS"); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text("Hurricane Local Statement from the National Weather Service in "+sidtitle); //$j("#hlstitle").append(fullname); // $j("#hlstitle").append(title); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); //alert(fullname); if (piltitle === undefined) { $j("#hlstext").html("

    Refer to the "+fullname+" website at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current "+piltitle+" exists from the National Weather Service in "+sidtitle+". For a listing of the current products in effect, please visit www.weather.gov/"+sid+".

    "); }; } }); $j("#sjuhlsspn").show(); $j("#sjuhlseng").hide(); }); } else { $j("#sjuhlseng").hide(); $j("#sjuhlsspn").hide(); $j.ajax({ url: pilurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf(pil); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text(piltitle+" from the National Weather Service office in "+sidtitle); //$j("#hlstitle").append(fullname); //$j("#hlstitle").append(title); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); //alert(fullname); if (piltitle === undefined) { $j("#hlstext").html("

    Refer to the "+fullname+" website at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current "+piltitle+" exists from the National Weather Service in "+sidtitle+". For a listing of the current products in effect, please visit www.weather.gov/"+sid+".

    "); } } }) };});$j("#wfo select").change(function() { sid = $j(this).val(); pil = $j("#productsform select").val(); //sidurl = pil + sid.toUpperCase() + ".txt"; sidurl = "/source/srh/tcv/text/" + pil + "/" + pil + sid.toUpperCase() + ".txt"; //alert(sidurl); //var hlsformurl = "HLS" + officeupper + ".txt"; // var pshformurl = "/source/srh/tcv/text/PSH" + officeupper + ".txt"; sidtitle = $j(this).find('option:selected').text(); piltitle = $j("#productsform select").find('option:selected').text(); //alert(pilurl); //alert(title); if (sid == 'sju' && pil == 'HLS') { $j("#sjuhlsspn").show(); var hlssjuurl = "/source/srh/tcv/text/HLS/HLSSJU.txt"; //var hlssjuurl = "HLSSJU.txt"; $j.ajax({ url: hlssjuurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf("HLS"); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text("Hurricane Local Statement from the National Weather Service in "+sidtitle); //$j("#hlstitle").append(fullname); //$j("#hlstitle").append(title); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); //alert(fullname); if (piltitle === undefined) { $j("#hlstext").html("

    Refer to the "+fullname+" website at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current "+piltitle+" exists from the National Weather Service in "+sidtitle+". For a listing of the current products in effect, please visit www.weather.gov/"+sid+".

    "); }; } }); //$j("#sjuhlseng").hide(); $j("#sjuhlsspn").click(function() { var hlsspnurl = "/source/srh/tcv/text/HLS/HLSSPN.txt"; //var hlsformurl = "HLSSPN.txt"; //var hlsspnurl = "HLSSPN.txt"; $j.ajax({ url: hlsspnurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf("HLS"); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text("Hurricane Local Statement from the National Weather Service in "+sidtitle); //$j("#hlstitle").append(title); //$j("#hlstitle").append(fullname); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); //alert(fullname); if (piltitle === undefined) { $j("#hlstext").html("

    Refer to the "+fullname+" website at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current "+piltitle+" exists from the National Weather Service in "+sidtitle+". For a listing of the current products in effect, please visit www.weather.gov/"+sid+".

    "); }; } }); $j("#sjuhlseng").show(); $j("#sjuhlsspn").hide(); }); $j("#sjuhlseng").click(function() { var hlssjuurl = "/source/srh/tcv/text/HLS/HLSSJU.txt"; //var hlssjuurl = "HLSSJU.txt"; $j.ajax({ url: hlssjuurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf("HLS"); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text("Hurricane Local Statement from the National Weather Service in "+sidtitle); //$j("#hlstitle").append(fullname); // $j("#hlstitle").append(title); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); //alert(fullname); if (piltitle === undefined) { $j("#hlstext").html("

    Refer to the "+fullname+" website at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current "+piltitle+" exists from the National Weather Service in "+sidtitle+". For a listing of the current products in effect, please visit www.weather.gov/"+sid+".

    "); }; } }); $j("#sjuhlsspn").show(); $j("#sjuhlseng").hide(); }); } else { $j("#sjuhlseng").hide(); $j("#sjuhlsspn").hide(); $j.ajax({ url: sidurl, dataType: "text", cache: false, success: function(data, status) { var position = data.indexOf(pil); var data = data.slice(position); $j.trim(data); $j("#hlstext").html("

    "+data+"

    "); $j("#hlstext").css({ "height": "100%", "width": "100%", "border": "1px solid black", "margin-bottom": "5px", //"overflow-y": "scroll" }); //$j("#hlstext").after('Scroll up/down to view the complete text.'); $j("#hlstitle").text(piltitle+" from the National Weather Service office in "+sidtitle); //$j("#hlstitle").append(fullname); //$j("#hlstitle").append(title); $j("#hlstitle").show(); $j("#hlstitlesm").show(); //$j("#localhr").show(); $j("#hlstext").show(); }, error: function(data){ $j("#hlstext").css("border","none"); //$j("#hlstext").css("overflow-y", "visible"); $j("#hlstext").css("height", ""); $j("#hlstext").css("width", ""); /*$j("#hlstext").hide(); */ //$j("#localhr").hide(); //$j("#scrolltext").remove(); $j("#hlstitlesm").hide(); $j("#hlstitle").hide(); //alert(fullname); if (sidtitle === undefined) { $j("#hlstext").html("

    Refer to the "+fullname+" website at www.nhc.noaa.gov for more information.

    "); } else { $j("#hlstext").html("

    No current "+piltitle+" exists from the National Weather Service in "+sidtitle+". For a listing of the current products in effect, please visit www.weather.gov/"+sid+".

    "); } } }) };}); clearTimeout(radartimer); clearTimeout(sattimer); if (test) { radarmap.remove(); test=false; }; clearTimeout(radarlooptimer); } else if (ui.newTab.index() == 4) { $j("#peaksurge1").css("display", "none"); $j("#peaksurge2").css("display", "none"); $j("#peaksurge3").css("display", "none"); $j("#peaksurge4").css("display", "none"); $j("#peaksurge5").css("display", "none"); $j("#stormsurgemap").css("display", "block"); $j("#stormcentricqpf1").css("display", "none"); $j("#stormcentricqpf2").css("display", "none"); $j("#stormcentricqpf3").css("display", "none"); $j("#stormcentricqpf4").css("display", "none"); $j("#stormcentricqpf5").css("display", "none"); $j("#spcwpcmap").css("display", "block"); if ( basin == "at" ) { $j("#goeswest").hide(); $j("#goeswestimg").hide(); } else { $j("#goeseast").hide(); $j("#goeseastimg").hide(); }; (function autorefreshsat() { var srcsat = $j("#satimg").attr('src'); $j("#satimg").removeAttr('src'); var i = srcsat.indexOf('?timestamp='); srcsat = i != -1 ? srcsat.substring(0, i) : srcsat; //var d = new Date(); $j("#satimg").attr('src', srcsat + '?timestamp=' + Math.random()); sattimer = setTimeout(autorefreshsat, 300000); })(); clearTimeout(radartimer); if (test) { radarmap.remove(); test = false; }; clearTimeout(radarlooptimer); $j(".tropicalsat a").click(function() { href = $j(this).prop('href'); //alert(href); $j(".highslide-maincontent").html("NWS Columbia Tropical Page (1)"); hs.Expander.prototype.onAfterExpand = function () { $j(".highslide-image").attr("alt","GOES Satellite Sector image"); } }); } else if (ui.newTab.index() == 5) { $j("#peaksurge1").css("display", "none"); $j("#peaksurge2").css("display", "none"); $j("#peaksurge3").css("display", "none"); $j("#peaksurge4").css("display", "none"); $j("#peaksurge5").css("display", "none"); $j("#stormsurgemap").css("display", "block"); $j("#stormcentricqpf1").css("display", "none"); $j("#stormcentricqpf2").css("display", "none"); $j("#stormcentricqpf3").css("display", "none"); $j("#stormcentricqpf4").css("display", "none"); $j("#stormcentricqpf5").css("display", "none"); $j("#spcwpcmap").css("display", "block"); $j("#foreign select").change(function() { var win = window.open($j(this).val(), '_blank'); win.focus(); //window.location.href= $j(this).val(); //return false; }); document.getElementById("foreign").reset(); if (latitude === undefined && longitude === undefined) { latitude = 36.64; longitude = -83.66; zoom = 3; }; test = false; (function refreshradarloop() { if (test == false) { var current = new Date(Date.now()); var currenttime = current.toISOString(); var previous = new Date(Date.now() - (90 * 60000)); var previoustime = previous.toISOString(); radarmap = L.map('radargis', { attributionControl: false, zoom: zoom, fullscreenControl: false, timeDimension: true, timeDimensionControl: true, timeDimensionControlOptions: { autoPlay: true, displayDate: true, playerOptions: { buffer: 8, transitionTime: 1000, loop: true }, speedSlider: true }, timeDimensionOptions: { timeInterval: previoustime + "/" + currenttime, //timeInterval: "PT30M/" + endDate.toISOString(), //period: "PT5M" period: "PT10M", loadingTimeout: 10000, }, center: [latitude, longitude] }); var oceanslabel = L.esri.basemapLayer('OceansLabels', { detectRetina: true}); var graylabel = L.esri.basemapLayer('GrayLabels', { detectRetina: true}); var darkgraylabel = L.esri.basemapLayer('DarkGrayLabels', { detectRetina: true}); var imagerylabel = L.esri.basemapLayer('ImageryLabels', { detectRetina: true}); var imagerytransportationlabel = L.esri.basemapLayer('ImageryTransportation', { detectRetina: true}); var shadedrelieflabel = L.esri.basemapLayer('ShadedReliefLabels', { detectRetina: true}); var terrainlabel = L.esri.basemapLayer('TerrainLabels', { detectRetina: true}); /*var cwaLayer = new L.tileLayer.wms('https://nowcoast.noaa.gov/arcgis/services/nowcoast/mapoverlays_admin_fedgov/MapServer/WMSServer?', { layers: '8', format: 'image/png', transparent: true, });*/ var cwaLayer = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/static/services/nws_reference_maps/nws_reference_map/MapServer/WMSServer?' , { layers: '9', format: 'image/png', transparent: true, }); var countiesLayer = new L.tileLayer.wms('https://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_Current/MapServer/WMSServer?', { layers: 'Counties', format: 'image/png', transparent: true, }); L.esri.basemapLayer('Streets', { detectRetina: true }).addTo(radarmap), L.control.groupedLayers({ 'Streets': L.esri.basemapLayer('Streets', { detectRetina: true }).addTo(radarmap), 'Topographic': L.esri.basemapLayer('Topographic', { detectRetina: true }), 'National Geographic': L.esri.basemapLayer('NationalGeographic', { detectRetina: true }), 'Oceans': L.esri.basemapLayer('Oceans', { detectRetina: true }), 'Gray': L.esri.basemapLayer('Gray', { detectRetina: true }), 'Dark Gray': L.esri.basemapLayer('DarkGray', { detectRetina: true }), 'Imagery': L.esri.basemapLayer('Imagery', { detectRetina: true }), 'Shaded Relief': L.esri.basemapLayer('ShadedRelief', { detectRetina: true }), 'USATopo' : L.esri.basemapLayer('USATopo', { detectRetina: true }) }, { "Overlays" : { 'Oceans Labels': oceanslabel, 'Gray Labels': graylabel, 'Dark Gray Labels': darkgraylabel, 'Imagery Labels': imagerylabel, 'Imagery Transportation Labels': imagerytransportationlabel, 'Shaded Relief Labels': shadedrelieflabel, 'Terrain Labels': terrainlabel, 'Counties': countiesLayer, 'County Warning Areas': cwaLayer } }).addTo(radarmap); //L.esri.basemapLayer("Streets").addTo(radarmap); /*L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors' }).addTo(radarmap); */ //var wmsURL = "https://idpgis.ncep.noaa.gov/arcgis/services/NWS_Observations/radar_base_reflectivity/MapServer/WMSServer"; //var wmsUrl = "https://idpgis.ncep.noaa.gov/arcgis/services/radar/radar_base_reflectivity_time/ImageServer/WMSServer"; //var wmsUrl = "https://mapservices.weather.noaa.gov/eventdriven/services/radar/radar_base_reflectivity_time/ImageServer/WMSServer"; var wmsUrl = "https://mapservices.weather.noaa.gov/eventdriven/services/radar/radar_base_reflectivity_time/ImageServer/WMSServer"; //var wmsUrl = "https://new.nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WMSServer"; var radarWMS = L.nonTiledLayer.wms(wmsUrl, { //var radarWMS = L.tileLayer.wms(wmsUrl, { layers: '0', format: 'image/png', transparent: true, opacity: 0.7, //version: '1.1.3', attribution: 'NWS' }); // var cachewms = "&"+ Math.random(); //var proxy = 'proxy.php'; //var proxy = 'https://crossorigin.me'; //var proxy = 'https://cors-anywhere.herokuapp.com/'; */ var testTimeLayer = L.timeDimension.layer.wms(radarWMS, { //refreshTime: 240000, // proxy: proxy, //cache: 0, //cacheForward: 1, //setDefaultTime: true, requestTimeFromCapabilities: true, //period: "PT10M", updateTimeDimension: true, updateTimeDimensionMode: "replace" }); radarmap.addLayer(testTimeLayer); //radarmap.removeLayer(radarWMS); //radarmap.addLayer(radarWMS); var theLegend = L.control({ position: 'bottomright' }); theLegend.onAdd = function(map) { //var src = "https://new.nowcoast.noaa.gov/images/legends/radar.png"; var src = "https://www.weather.gov/images/srh/tropical/radarlegend.png"; var div = L.DomUtil.create('div', 'info legend'); div.style.width = '270px'; div.style.height = '50px'; div.innerHTML += 'NWS Columbia Tropical Page (2)'; return div; }; theLegend.addTo(radarmap); radarmap.invalidateSize(false); //radarmap.off(); //radarmap.on(); } else { center = radarmap.getCenter(); //console.log(center); latitude = center["lat"]; longitude = center["lng"]; //alert(latitude); //alert(longitude); //alert(center); zoom = radarmap.getZoom(); //alert(zoom); radarmap.remove(); var current = new Date(Date.now()); var currenttime = current.toISOString(); var previous = new Date(Date.now() - (90 * 60000)); var previoustime = previous.toISOString(); radarmap = L.map('radargis', { attributionControl: false, zoom: zoom, fullscreenControl: false, timeDimension: true, timeDimensionControl: true, timeDimensionControlOptions: { autoPlay: true, displayDate: true, playerOptions: { buffer: 8, transitionTime: 1000, loop: true }, speedSlider: true }, timeDimensionOptions: { timeInterval: previoustime + "/" + currenttime, //timeInterval: "PT30M/" + endDate.toISOString(), //period: "PT5M" period: "PT10M", loadingTimeout: 10000 }, center: [latitude, longitude] }); /*radarmap.on('mousemove', function(event){ console.log(radarmap.getCenter()); console.log(radarmap.getZoom()); center = radarmap.getCenter(); zoom = radarmap.getZoom(); }); */ //L.esri.basemapLayer("Streets").addTo(radarmap); var oceanslabel = L.esri.basemapLayer('OceansLabels', { detectRetina: true}); var graylabel = L.esri.basemapLayer('GrayLabels', { detectRetina: true}); var darkgraylabel = L.esri.basemapLayer('DarkGrayLabels', { detectRetina: true}); var imagerylabel = L.esri.basemapLayer('ImageryLabels', { detectRetina: true}); var imagerytransportationlabel = L.esri.basemapLayer('ImageryTransportation', { detectRetina: true}); var shadedrelieflabel = L.esri.basemapLayer('ShadedReliefLabels', { detectRetina: true}); var terrainlabel = L.esri.basemapLayer('TerrainLabels', { detectRetina: true}); /*var cwaLayer = new L.tileLayer.wms('https://nowcoast.noaa.gov/arcgis/services/nowcoast/mapoverlays_admin_fedgov/MapServer/WMSServer?', { layers: '8', format: 'image/png', transparent: true, });*/ var cwaLayer = new L.tileLayer.wms('https://mapservices.weather.noaa.gov/static/services/nws_reference_maps/nws_reference_map/MapServer/WMSServer?' , { layers: '9', format: 'image/png', transparent: true, }); var countiesLayer = new L.tileLayer.wms('https://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_Current/MapServer/WMSServer?', { layers: 'Counties', format: 'image/png', transparent: true, }); L.esri.basemapLayer('Streets', { detectRetina: true }).addTo(radarmap), L.control.groupedLayers({ 'Streets': L.esri.basemapLayer('Streets', { detectRetina: true }).addTo(radarmap), 'Topographic': L.esri.basemapLayer('Topographic', { detectRetina: true }), 'National Geographic': L.esri.basemapLayer('NationalGeographic', { detectRetina: true }), 'Oceans': L.esri.basemapLayer('Oceans', { detectRetina: true }), 'Gray': L.esri.basemapLayer('Gray', { detectRetina: true }), 'Dark Gray': L.esri.basemapLayer('DarkGray', { detectRetina: true }), 'Imagery': L.esri.basemapLayer('Imagery', { detectRetina: true }), 'Shaded Relief': L.esri.basemapLayer('ShadedRelief', { detectRetina: true }), 'USATopo' : L.esri.basemapLayer('USATopo', { detectRetina: true }) }, { "Overlays" : { 'Oceans Labels': oceanslabel, 'Gray Labels': graylabel, 'Dark Gray Labels': darkgraylabel, 'Imagery Labels': imagerylabel, 'Imagery Transportation Labels': imagerytransportationlabel, 'Shaded Relief Labels': shadedrelieflabel, 'Terrain Labels': terrainlabel, 'Counties': countiesLayer, 'County Warning Areas': cwaLayer } }).addTo(radarmap); $j('.leaflet-control-attribution').hide(); /*L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors' }).addTo(radarmap); */ //var wmsURL = "https://idpgis.ncep.noaa.gov/arcgis/services/NWS_Observations/radar_base_reflectivity/MapServer/WMSServer"; //var wmsUrl = "https://idpgis.ncep.noaa.gov/arcgis/services/radar/radar_base_reflectivity_time/ImageServer/WMSServer"; //var wmsUrl = "https://mapservices.weather.noaa.gov/eventdriven/services/radar/radar_base_reflectivity_time/ImageServer/WMSServer"; var wmsUrl = "https://mapservices.weather.noaa.gov/eventdriven/services/radar/radar_base_reflectivity_time/ImageServer/WMSServer"; //var wmsUrl = "https://new.nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WMSServer"; var radarWMS = L.nonTiledLayer.wms(wmsUrl, { //var radarWMS = L.tileLayer.wms(wmsUrl, { layers: '0', format: 'image/png', transparent: true, opacity: 0.7, //version: '1.1.3', attribution: 'NWS' }); // var cachewms = "&"+ Math.random(); //var proxy = 'proxy.php'; //var proxy = 'https://crossorigin.me'; //var proxy = 'https://cors-anywhere.herokuapp.com/'; */ var testTimeLayer = L.timeDimension.layer.wms(radarWMS, { //refreshTime: 240000, //proxy: proxy, //cache: 0, //cacheForward: 0, //setDefaultTime: true, requestTimeFromCapabilities: true, //period: "PT10M", updateTimeDimension: true, updateTimeDimensionMode: "replace" }); radarmap.addLayer(testTimeLayer); //radarmap.removeLayer(radarWMS); //radarmap.addLayer(radarWMS); var theLegend = L.control({ position: 'bottomright' }); theLegend.onAdd = function(map) { //var src = "https://new.nowcoast.noaa.gov/images/legends/radar.png"; var src = "https://www.weather.gov/images/srh/tropical/radarlegend.png"; var div = L.DomUtil.create('div', 'info legend'); div.style.width = '270px'; div.style.height = '50px'; div.innerHTML += 'NWS Columbia Tropical Page (3)'; return div; }; theLegend.addTo(radarmap); radarmap.invalidateSize(false); }; test = true; radarlooptimer = setTimeout(refreshradarloop, 240000); //radarlooptimer = setTimeout(refreshradarloop, 600000); //test = true; //radarmap.remove(); })(); /* (function autorefreshradar() { var srcsouthplains = $j("#southplains").attr('src'); $j("#southplains").removeAttr('src'); var i = srcsouthplains.indexOf('?timestamp='); srcsouthplains = i != -1 ? srcsouthplains.substring(0, i) : srcsouthplains; //var d = new Date(); $j("#southplains").attr('src', srcsouthplains + '?timestamp=' + Math.random()); var srcsouthmissvly = $j("#southmissvly").attr('src'); $j("#southmissvly").removeAttr('src'); var i = srcsouthmissvly.indexOf('?timestamp='); srcsouthmissvly = i != -1 ? srcsouthmissvly.substring(0, i) : srcsouthmissvly; //var d = new Date(); $j("#southmissvly").attr('src', srcsouthmissvly + '?timestamp=' + Math.random()); var srcsoutheast = $j("#southeast").attr('src'); $j("#southeast").removeAttr('src'); var i = srcsoutheast.indexOf('?timestamp='); srcsoutheast = i != -1 ? srcsoutheast.substring(0, i) : srcsoutheast; //var d = new Date(); $j("#southeast").attr('src', srcsoutheast + '?timestamp=' + Math.random()); var srcnortheast = $j("#northeast").attr('src'); $j("#northeast").removeAttr('src'); var i = srcnortheast.indexOf('?timestamp='); srcnortheast = i != -1 ? srcnortheast.substring(0, i) : srcnortheast; //var d = new Date(); $j("#northeast").attr('src', srcnortheast + '?timestamp=' + Math.random()); radartimer = setTimeout(autorefreshradar, 600000); })(); */ clearTimeout(sattimer); } else if (ui.newTab.index() == 7) { $j("#peaksurge1").css("display", "none"); $j("#peaksurge2").css("display", "none"); $j("#peaksurge3").css("display", "none"); $j("#peaksurge4").css("display", "none"); $j("#peaksurge5").css("display", "none"); $j("#stormsurgemap").css("display", "block"); $j("#stormcentricqpf1").css("display", "none"); $j("#stormcentricqpf2").css("display", "none"); $j("#stormcentricqpf3").css("display", "none"); $j("#stormcentricqpf4").css("display", "none"); $j("#stormcentricqpf5").css("display", "none"); $j("#spcwpcmap").css("display", "block"); $j("#engspa input").click(function() { //alert("Test"); //alert($(this).val()); //$(this).val(); //alert($(this).is(':checked')); if ($j(this).is(':checked')) { //alert($(this).val()); var language = $j(this).val(); //alert(language); switch (language) { case "english": html = '

    '; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += '
    NWS Columbia Tropical Page (6)NWS Columbia Tropical Page (9)NWS Columbia Tropical Page (10)
    Tropical Cyclone PreparednessHurricane Safety Fact SheetRed Cross Hurricane ChecklistHurricane BasicsIntroduction to Storm SurgeStorm Surge TipsPotential Storm SurgeTropical Cyclone Flooding

    '; html += 'Sources: NHC, National Weather Service, NOAA, FEMA, and the Red Cross'; $j('#brochuresection').html(html); $j("#brochuretitle").text("Preparedness Brochures"); html = '

    '; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += '
    Storm SurgeGetting Ready For HurricanesWhen the Waves Swell

    '; html += '

    '; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += '
    NWS Columbia Tropical Page (12)NWS Columbia Tropical Page (13)NWS Columbia Tropical Page (14)NWS Columbia Tropical Page (15)
    Fuel for the StormHurricane SurvivalStorm SurgeHurricane Hunters

    '; html += 'Sources: NHC and the National Ocean Service'; $j("#videosection").html(html); $j("#videotitle").text("Preparedness Videos"); html = '

    '; $j("#preparednesslinkssection").html(html); $j("#linkstitle").text("Preparedness Links"); break; case "spanish": html = '

    '; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += '
    NWS Columbia Tropical Page (18)
    Preparaci\u00F3n para Ciclones TropicalesDatos de Seguridad Contra HuracanesListado de Seguridad en Caso de Huracanes de la Cruz RojaIntroducci\u00F3n a la Marejada Cicl\u00F3nica

    '; html += 'Fuentes: NHC, National Weather Service, NOAA, FEMA, y la Red Cross'; $j('#brochuresection').html(html); $j("#brochuretitle").text("Folletos de Preparaci\u00F3n"); html = '

    '; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += '
    Perspectiva de un Hurac\u00E1nMarejada Cicl\u00F3nicaMarejada Cicl\u00F3nicaViento

    '; html += '

    '; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += '
    Inundaciones Tierra AdentroEl Proceso del Pron\u00F3stico\u00A1Tenga un Plan\u0021Tomando Acci\u00F3n

    '; html += 'Fuentes: NHC y National Weather Service'; $j("#videosection").html(html); $j("#videotitle").text("Videos de Preparaci\u00F3n"); html = '

    '; $j("#preparednesslinkssection").html(html); $j("#linkstitle").text("Enlaces de Preparaci\u00F3n"); break; } } }); //document.getElementById("evacflorida").reset(); //document.getElementById("evacatl").reset(); clearTimeout(radartimer); clearTimeout(sattimer); if (test) { radarmap.remove(); test=false; }; clearTimeout(radarlooptimer); switch (fullname) { case 'Corpus Christi': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Brownsville/Rio Grande Valley': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Houston/Galveston': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Austin/San Antonio': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Fort Worth': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Lake Charles': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Shreveport': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'New Orleans/Baton Rouge': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Mobile/Pensacola': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Birmingham': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Jackson': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Jacksonville': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Tallahassee': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Tampa Bay': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Melbourne': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Miami': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Key West': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Charleston': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Columbia': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Raleigh/Durham': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Wilmington': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Newport/Morehead City': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Wakefield': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Baltimore/Washington': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Philadelphia/Mount Holly': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'New York': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; case 'Boston/Norton': formhtml = '

    '; $j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); //$j("#evacformhtml").html('

    Hurricane Evacuation Routes

    '+formhtml+'

    '); break; }; $j("#evacform select").change(function() { var win = window.open($j(this).val(), '_blank'); win.focus(); //window.location.href= $j(this).val(); //return false; }); document.getElementById("evacform").reset(); //document.getElementById("engspa").reset(); } else if (ui.newTab.index() == 8) { $j("#peaksurge1").css("display", "none"); $j("#peaksurge2").css("display", "none"); $j("#peaksurge3").css("display", "none"); $j("#peaksurge4").css("display", "none"); $j("#peaksurge5").css("display", "none"); $j("#stormsurgemap").css("display", "block"); $j("#stormcentricqpf1").css("display", "none"); $j("#stormcentricqpf2").css("display", "none"); $j("#stormcentricqpf3").css("display", "none"); $j("#stormcentricqpf4").css("display", "none"); $j("#stormcentricqpf5").css("display", "none"); $j("#spcwpcmap").css("display", "block"); if ( basin == "at" ) { $j("#stormnamesEPsection").hide(); } else { $j("#stormnamesATsection").hide(); }; var originallsrhref = $j("#lsrtext").prop('href'); var newlsrhref = originallsrhref.replace(/issuedby=\w{3}/g, "issuedby="+office.slice(0,3)); //alert(fullname); $j("#lsrtext").prop('href',newlsrhref); var originallsrtext = "Local Storm Report for the NWS Office in "; if (fullname != "National Hurricane Center") { $j("#lsrtext").text(originallsrtext+fullname); $j("#lsrli").show(); } else { $j("#lsrli").hide(); }; var originalpshhref = $j("#pshtext").prop('href'); var newpshhref = originalpshhref.replace(/gov\/\w{3}/g, "gov/"+office.slice(0,3)); //alert(fullname); $j("#pshtext").prop('href',newpshhref); var originalpshtext = "Post Tropical Cyclone Report for the NWS Office in "; if (fullname != "National Hurricane Center") { $j("#pshtext").text(originalpshtext+fullname); $j("#pshli").show(); } else { $j("#pshli").hide(); }; var originalcrlsrhref = $j("#crlsrtext").prop('href'); var newcrlsrhref = originalcrlsrhref.replace(/sid=\w{3}/g, "sid="+officelower.slice(0,3)); $j("#crlsrtext").prop('href',newcrlsrhref); /*var originalnhcadvarchivehref = $j("#nhcadvarchive").prop('href'); var newnhcadvarchivehref = originalnhcadvarchivehref.replace(/archive\/\w{4}/g, "/archive/"+dtfullyear); $j("#nhcadvarchive").prop('href',newnhcadvarchivehref); */ //var originallsrtext = "Local Storm Report for the NWS Office in "; //if (fullname != "National Hurricane Center") { //$j("#lsrtext").text(originallsrtext+fullname); //$j("#lsrli").show(); //} else { // $j("#lsrli").hide(); //}; clearTimeout(radartimer); clearTimeout(sattimer); if (test) { radarmap.remove(); test=false; }; clearTimeout(radarlooptimer); $j("#engspalinks input").click(function() { //alert("Test"); //alert($(this).val()); //$(this).val(); //alert($(this).is(':checked')); if ($j(this).is(':checked')) { //alert($(this).val()); var language = $j(this).val(); //alert(language); switch (language) { case "english": html = '

    '; $j("#NHClinks").html(html); $j("#NHCtitle").text("National Hurricane Center Links"); html = '

    '; html += '

    Miscellaneous Links

    '; html += '

    '; $j("#Misclinks").html(html); $j('#misclinkslist').prepend(htmllinks); break; case "spanish": html = '

    '; $j("#NHClinks").html(html); $j("#NHCtitle").text("Descripciones de productos NHC"); $j("#Misclinks").html(''); break; } } }); //document.getElementById("engspalinks").reset(); } else if (ui.newTab.index() == 6) { $j("#peaksurge1").css("display", "none"); $j("#peaksurge2").css("display", "none"); $j("#peaksurge3").css("display", "none"); $j("#peaksurge4").css("display", "none"); $j("#peaksurge5").css("display", "none"); $j("#stormsurgemap").css("display", "block"); $j("#stormcentricqpf1").css("display", "none"); $j("#stormcentricqpf2").css("display", "none"); $j("#stormcentricqpf3").css("display", "none"); $j("#stormcentricqpf4").css("display", "none"); $j("#stormcentricqpf5").css("display", "none"); $j("#spcwpcmap").css("display", "block"); if (fburl == undefined) { fburl = "NWSNHC"; }; if (twurl == undefined) { twurl = "NHC_Atlantic"; }; if (fullname == undefined) { fullname = "National Hurricane Center"; }; if ($j("#fbdiv").length > 0) { $j("#fbdiv").remove(); $j("#twdiv").remove(); } $j("#socialmediaheader").after('

    '); //var newsrc = originalsrc.replace(/NWS\w{1,20}/g, officeurl); origsrc = $j("#fbiframe").attr('src'); //alert(origsrc); var newsrc = origsrc.replace(/NWS\w{1,20}/g, fburl); $j("#fbiframe").prop('src',newsrc); $j("#fbdiv").after('

    '); $j("#twdiv").append('Tweets by '+twurl+''); /*$j("#twdiv").css({"border-color": "black", "border-width": "1px", "border-style": "solid", "width": "375px", "float": "left", "margin": "0", "padding": "0", "height": "500" }); */ twttr.widgets.load(); document.getElementById("socialmediafb").reset(); document.getElementById("socialmediatw").reset(); $j("#socialmediatw select").change(function() { var newhref = $j(this).val(); var lastindex = newhref.lastIndexOf("/"); var office = newhref.substr(lastindex+1); //alert(office); //$j("#twitter-widget-0").remove(); //$j("a.twitter-timeline").replaceWith('Tweets by '+office+''); $j("#twdiv").remove(); $j("#fbdiv").after('

    Tweets by '+office+'

    '); twttr.widgets.load(); $j("#twdiv").css({"border-color": "black", "border-width": "1px", "border-style": "solid", "width": "464px", "float": "left", "margin": "0", "padding": "0", "height": "500" }); //console.log(widget.id); //window.location.href= $j(this).val(); //window.open($j(this).val()); //return false; }); $j("#socialmediafb select").change(function() { //alert(office); var currenthref = $j(this).val(); var lastindex = currenthref.lastIndexOf("/"); var officeurl = currenthref.substr(lastindex+1); //alert(office); //$j("#fbdiv").remove(); var originalsrc = $j("#fbiframe").attr('src'); //var pattern = new RegExp(office, "g"); var newsrc = originalsrc.replace(/NWS\w{1,20}/g, officeurl); //alert(newsrc); $j("#fbiframe").prop('src', newsrc); //$j("#socialmediaheader").after('

    '); }); clearTimeout(radartimer); clearTimeout(sattimer); if (test) { radarmap.remove(); test=false; }; clearTimeout(radarlooptimer); //$j.getScript("https://platform.twitter.com/widgets.js"); //$j("#twdiv").append('

    '); twttr.widgets.load(); $j("#twdiv").css({"border-color": "black", "border-width": "1px", "border-style": "solid", "width": "464px", "float": "left", "margin": "0", "padding": "0", "height": "500" }); //console.log(widget.id); //window.location.href= $j(this).val(); //window.open($j(this).val()); //return false; }); $j("#socialmediafb select").change(function() { //alert(office); var currenthref = $j(this).val(); var lastindex = currenthref.lastIndexOf("/"); var officeurl = currenthref.substr(lastindex+1); //alert(office); //$j("#fbdiv").remove(); var originalsrc = $j("#fbiframe").attr('src'); //var pattern = new RegExp(office, "g"); var newsrc = originalsrc.replace(/NWS\w{1,20}/g, officeurl); //alert(newsrc); $j("#fbiframe").prop('src', newsrc); //$j("#socialmediaheader").after('

    '); }); // $j("#tabs").tabs({ active: activetab}); /* if ($j("#fbdiv").length > 0) { $j("#fbdiv").remove(); $j("#twdiv").remove(); }; */ $j("#socialmediaheader").after('

    '); //var newsrc = originalsrc.replace(/NWS\w{1,20}/g, officeurl); origsrc = $j("#fbiframe").attr('src'); //alert(origsrc); var newsrc = origsrc.replace(/NWS\w{1,20}/g, fburl); $j("#fbiframe").prop('src',newsrc); $j("#fbdiv").after('

    '); $j("#twdiv").append('Tweets by '+twurl+''); /*$j("#twdiv").css({"border-color": "black", "border-width": "1px", "border-style": "solid", "width": "375px", "float": "left", "margin": "0", "padding": "0", "height": "500" }); */ twttr.widgets.load(); // document.getElementById("socialmediafb").reset(); // document.getElementById("socialmediatw").reset(); } else if (activetab == 7) { if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { $j('.div-full').css('width','960px'); $j("#pagebody").css('width','960px'); $j("#pagebody").css('padding', '0px'); $j(".cms-content").css('width', '960px'); $j("#sidebar").hide(); $j(".center-content").css('display', 'block'); $j(".center-content").css('margin-right', 'auto'); $j(".center-content").css('margin-left', 'auto'); $j(".center-content").css('overflow', 'visible'); // alert("mike"); }; $j("#engspa input").click(function() { //alert("Test"); //alert($(this).val()); //$(this).val(); //alert($(this).is(':checked')); if ($j(this).is(':checked')) { //alert($(this).val()); var language = $j(this).val(); //alert(language); switch (language) { case "english": html = '

    '; html += 'Sources: NHC, National Weather Service, NOAA, FEMA, and the Red Cross'; $j('#brochuresection').html(html); $j("#brochuretitle").text("Preparedness Brochures"); html = '

    '; html += 'Sources: NHC and the National Ocean Service'; $j("#videosection").html(html); $j("#videotitle").text("Preparedness Videos"); html = '

    '; $j("#preparednesslinkssection").html(html); $j("#linkstitle").text("Preparedness Links"); break; case "spanish": html = '

    '; html += 'Fuentes: NHC, National Weather Service, NOAA, FEMA, y la Red Cross'; $j('#brochuresection').html(html); $j("#brochuretitle").text("Folletos de Preparaci\u00F3n"); html = '

    '; html += 'Fuentes: NHC y National Weather Service'; $j("#videosection").html(html); $j("#videotitle").text("Videos de Preparaci\u00F3n"); html = '

    '; $j("#preparednesslinkssection").html(html); $j("#linkstitle").text("Enlaces de Preparaci\u00F3n"); break; } } }); //document.getElementById("evacflorida").reset(); //document.getElementById("evacatl").reset(); clearTimeout(radartimer); clearTimeout(sattimer); if (test) { radarmap.remove(); test=false; }; clearTimeout(radarlooptimer); switch (fullname) { case 'Corpus Christi': formhtml = '

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '+formhtml+'
    Pop-up blocking should be disabled in order to view evacuation routes.

    '); break; }; $j("#evacform select").change(function() { var win = window.open($j(this).val(), '_blank'); win.focus(); //window.location.href= $j(this).val(); //return false; }); document.getElementById("evacform").reset(); //document.getElementById("engspa").reset(); } else if (activetab == 8) { if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { $j('.div-full').css('width','960px'); $j("#pagebody").css('width','960px'); $j("#pagebody").css('padding', '0px'); $j(".cms-content").css('width', '960px'); $j("#sidebar").hide(); $j(".center-content").css('display', 'block'); $j(".center-content").css('margin-right', 'auto'); $j(".center-content").css('margin-left', 'auto'); $j(".center-content").css('overflow', 'visible'); // alert("mike"); }; var originallsrhref = $j("#lsrtext").prop('href'); var newlsrhref = originallsrhref.replace(/issuedby=\w{3}/g, "issuedby="+office.slice(0,3)); //alert(fullname); $j("#lsrtext").prop('href',newlsrhref); var originallsrtext = "Local Storm Report for the NWS Office in "; if (fullname != "National Hurricane Center") { $j("#lsrtext").text(originallsrtext+fullname); $j("#lsrli").show(); } else { $j("#lsrli").hide(); }; var originalpshhref = $j("#pshtext").prop('href'); var newpshhref = originalpshhref.replace(/gov\/\w{3}/g, "gov/"+office.slice(0,3)); //alert(fullname); $j("#pshtext").prop('href',newpshhref); var originalpshtext = "Post Tropical Cyclone Report for the NWS Office in "; if (fullname != "National Hurricane Center") { $j("#pshtext").text(originalpshtext+fullname); $j("#pshli").show(); } else { $j("#pshli").hide(); }; var originalcrlsrhref = $j("#crlsrtext").prop('href'); var newcrlsrhref = originalcrlsrhref.replace(/sid=\w{3}/g, "sid="+officelower.slice(0,3)); $j("#crlsrtext").prop('href',newcrlsrhref); /*var originalnhcadvarchivehref = $j("#nhcadvarchive").prop('href'); var newnhcadvarchivehref = originalnhcadvarchivehref.replace(/archive\/\w{4}/g, "/archive/"+dtfullyear); $j("#nhcadvarchive").prop('href',newnhcadvarchivehref); */ clearTimeout(radartimer); clearTimeout(sattimer); if (test) { radarmap.remove(); test=false; }; clearTimeout(radarlooptimer); $j("#engspalinks input").click(function() { //alert("Test"); //alert($(this).val()); //$(this).val(); //alert($(this).is(':checked')); if ($j(this).is(':checked')) { //alert($(this).val()); var language = $j(this).val(); //alert(language); switch (language) { case "english": html = '

    '; $j("#NHClinks").html(html); $j("#NHCtitle").text("National Hurricane Center Links"); html = '

    '; $j("#Misclinks").html(html); $j('#misclinkslist').prepend(htmllinks); break; case "spanish": html = '

    '; $j("#NHClinks").html(html); $j("#NHCtitle").text("Descripciones de productos NHC"); $j("#Misclinks").html(''); break; } } }); } }); /*var now = new Date(); var hour = now.getUTCHours(); var hour = Number(hour); var day1gif; var day2gif; if ((hour >= 20) || (hour < 1)) { day1gif = "day1otlk_2000.gif"; day2gif = "day2otlk_1730.gif"; } else if (hour >= 17) { day1gif = "day1otlk_1630.gif"; day2gif = "day2otlk_0600.gif"; } else if (hour >= 13) { day1gif = "day1otlk_1300.gif"; day2gif = "day2otlk_0600.gif"; } else if (hour >= 6) { day1gif = "day1otlk_1200.gif"; day2gif = "day2otlk_0600.gif"; } else { day1gif = "day1otlk_0100.gif"; day2gif = "day2otlk_1730.gif" }; var day1url = "https://www.spc.noaa.gov/products/outlook/" + day1gif; var day2url = "https://www.spc.noaa.gov/products/outlook/" + day2gif; $j("#srcoutlookday1").attr('src', day1url); $j("#srcoutlookday2").attr('src', day2url); $j("#srcoutlookday1").click(function() { // $j("#srcoutlookday1").attr('src', day1url); //hs.easing = 'linearTween'; $j(".highslide-maincontent").html("NWS Columbia Tropical Page (20)"); }); $j("#srcoutlookday2").click(function() { //$j("#srcoutlookday2").attr('src', day2url); // hs.easing = 'linearTween'; $j(".highslide-maincontent").html("NWS Columbia Tropical Page (21)"); }); $j('.leaflet-control-attribution').hide(); */ });

    NWS Columbia Tropical Page (2024)

    References

    Top Articles
    Fast X: Where Was the Movie Filmed?
    Everything We Know About Fast X
    How To Fix Epson Printer Error Code 0x9e
    DPhil Research - List of thesis titles
    The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
    Fredatmcd.read.inkling.com
    Farepay Login
    Lifebridge Healthstream
    Wells Fargo Careers Log In
    Dr Lisa Jones Dvm Married
    New Day Usa Blonde Spokeswoman 2022
    Fcs Teamehub
    Lesson 3 Homework Practice Measures Of Variation Answer Key
    Cube Combination Wiki Roblox
    Youtube Combe
    Craigslist Boats For Sale Seattle
    Washington, D.C. - Capital, Founding, Monumental
    No Strings Attached 123Movies
    Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
    Best Food Near Detroit Airport
    “In my day, you were butch or you were femme”
    Nwi Arrests Lake County
    Cinebarre Drink Menu
    50 Shades Darker Movie 123Movies
    List of all the Castle's Secret Stars - Super Mario 64 Guide - IGN
    Free Online Games on CrazyGames | Play Now!
    Hanger Clinic/Billpay
    Arre St Wv Srj
    Walmart Car Department Phone Number
    The Tower and Major Arcana Tarot Combinations: What They Mean - Eclectic Witchcraft
    If you have a Keurig, then try these hot cocoa options
    Walmart Pharmacy Near Me Open
    Wsbtv Fish And Game Report
    The Boogeyman (Film, 2023) - MovieMeter.nl
    2023 Ford Bronco Raptor for sale - Dallas, TX - craigslist
    Remnants of Filth: Yuwu (Novel) Vol. 4
    Housing Intranet Unt
    Craigslist Sf Garage Sales
    Gridwords Factoring 1 Answers Pdf
    60 Second Burger Run Unblocked
    140000 Kilometers To Miles
    Fridley Tsa Precheck
    Everstart Jump Starter Manual Pdf
    Shane Gillis’s Fall and Rise
    Umiami Sorority Rankings
    Atom Tickets – Buy Movie Tickets, Invite Friends, Skip Lines
    Leland Nc Craigslist
    Levi Ackerman Tattoo Ideas
    Az Unblocked Games: Complete with ease | airSlate SignNow
    RubberDucks Front Office
    Pulpo Yonke Houston Tx
    Unbiased Thrive Cat Food Review In 2024 - Cats.com
    Latest Posts
    Article information

    Author: Pres. Carey Rath

    Last Updated:

    Views: 5706

    Rating: 4 / 5 (61 voted)

    Reviews: 84% of readers found this page helpful

    Author information

    Name: Pres. Carey Rath

    Birthday: 1997-03-06

    Address: 14955 Ledner Trail, East Rodrickfort, NE 85127-8369

    Phone: +18682428114917

    Job: National Technology Representative

    Hobby: Sand art, Drama, Web surfing, Cycling, Brazilian jiu-jitsu, Leather crafting, Creative writing

    Introduction: My name is Pres. Carey Rath, I am a faithful, funny, vast, joyous, lively, brave, glamorous person who loves writing and wants to share my knowledge and understanding with you.