var map //var BA var UDFCDLayer var countyLayer var rainstep var intRain var labelx = 30 //label horizontal size var labely = 20 //label vertical size var warningon = 0 var rainvieweron = 0 var fireon = 0 var histfireon = 0 var radartype = 5; var NS5IP = "199.127.203.145" var thehost = "mhfd-ns5master.trilynx-novastar.systems" overlayFloodLegend = new google.maps.KmlLayer("https://" + thehost + "/WETMapV3/kml/FEMA_Flood_Legend-GC.kml", {suppressInfoWindows: true, preserveViewport: true}); var mhfd = new google.maps.LatLng(39.71041, -104.906424); function initialize() { google.maps.visualRefresh = true; var myOptions = { center: mhfd, zoom: 9, mapTypeId: google.maps.MapTypeId.TERRAIN, streetViewControl: true, zoomControl: false, fullscreenControl: false, keyboardShortcuts: true, controlSize: 30, scaleControl: true, streetViewControlOptions: { position: google.maps.ControlPosition.LEFT_BOTTOM }, zoomControlOptions: { style: google.maps.ZoomControlStyle.SMALL, position: google.maps.ControlPosition.LEFT_BOTTOM, }, mapTypeControl: false, mapTypeControlOptions: { mapTypeIds: [google.maps.MapTypeId.ROADMAP, google.maps.MapTypeId.TERRAIN, google.maps.MapTypeId.SATELLITE, google.maps.MapTypeId.HYBRID], style: google.maps.MapTypeControlStyle.DROPDOWN_MENU, position: google.maps.ControlPosition.RIGHT_TOP } } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions) map.overlayMapTypes.push(null); //place holder for flood map.overlayMapTypes.push(null); //placeholder for land owner map.overlayMapTypes.push(null); //placeholder for RainViewer map.setMapTypeId(google.maps.MapTypeId.TERRAIN); google.maps.event.addListener(map, 'mousemove', function (event) { }); map.addListener('bounds_changed', function() { if (document.getElementById('datatype').innerHTML == 'rain'){ //createrainmarkers(document.getElementById('intRain').value) createrainmarkers(intRain) } else if (document.getElementById('datatype').innerHTML == 'archived'){ updateImageArchived(document.getElementById('ME').value, document.getElementById('DE').value, document.getElementById('YE').value, document.getElementById('HE').value, document.getElementById('intRain').value, '0') } }); //addBA(); addUDFCDBound(); addCounties(); addWarnings(); createrainmarkers("rain_today"); clock(); doTimer(); resizeMapWindow(); addRainViewer(); } function resizeMapWindow() { var divWidth = 0, divHeight = 0; var mobileHeight = 0 divWidth = $(window).width(); divHeight = $(window).height(); if (divWidth < 960){ mobileHeight = 45 } document.getElementById("map_canvas").style.height = (divHeight - 95 + mobileHeight) + "px"; //document.getElementById("map_canvas").style.width = (divWidth - 0) + "px"; google.maps.event.trigger(map, 'resize') } function clock(){ var today = new Date(); var hours = today.getHours(); var minutes = today.getMinutes(); var seconds = today.getSeconds(); var time_holder; // holds the time // add a leading zero if less than 10 hours = ((hours < 10) ? "0" + hours : hours); minutes = ((minutes < 10) ? "0" + minutes : minutes); seconds = ((seconds < 10) ? "0" + seconds : seconds); time_holder = hours + ":" + minutes + ":" + seconds; document.getElementById('jsClock').innerHTML = time_holder; setTimeout("clock()", 1000); } var wmtimer = setInterval(timedCount, 60000); function ZoomToMHFD(){ map.setCenter(mhfd) map.setZoom(9) } function setBackground(){ if (document.getElementById("satellite").checked == 1){ map.setMapTypeId('hybrid'); } else { map.setMapTypeId('terrain'); } } function showlocation(){ thecenter = map.getCenter() thezoom = map.getZoom() alert(thecenter + " " + thezoom) }
Menu
Data
Close Menu