- Timestamp:
- 03/10/2019 02:34:39 PM (7 years ago)
- Location:
- trunk/src/cptms
- Files:
-
- 2 edited
-
cptms_map.html (modified) (5 diffs)
-
messagefile.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cptms/cptms_map.html
r302 r303 194 194 // white means a disabled spot 195 195 var colorZvalues = {"white":5,"lime":10,"yellow":20,"red":30}; 196 var k MapStartupFile = "cmsStatusD12.json";196 var kCMSstartupFile = "cmsStatusD12.json"; 197 197 var blueFlag = "images/CPTMSImages/icon_cmsBlue.png"; 198 198 var yellowFlag = "images/CPTMSImages/icon_cmsYellow.png"; … … 466 466 vdsBtnDiv.addEventListener('click', function() { 467 467 vds_showing = !vds_showing; 468 // reveal or hide all the icons 469 alert("Not implemented yet") 468 // reveal or hide all the dots 469 map.data.forEach(function(feature) 470 { 471 map.data.overrideStyle(feature, {visible:vds_showing}); 472 }); 470 473 // Determine which button image to show 471 474 if (vds_showing) 472 475 { 473 pic = " btnDepressed_VDS.png"476 pic = "images/CPTMSImages/btnDepressed_VDS.png" 474 477 } 475 478 else 476 479 { 477 pic = " btnReady_VDS.png"480 pic = "images/CPTMSImages/btnReady_VDS.png" 478 481 } 479 482 document.getElementById('vdsBtnImg').src=pic; … … 547 550 var xobj = new XMLHttpRequest(); 548 551 xobj.overrideMimeType("application/json"); 549 xobj.open('GET', k MapStartupFile, true);552 xobj.open('GET', kCMSstartupFile, true); 550 553 xobj.onreadystatechange = function() 551 554 { … … 646 649 streetViewControl: false 647 650 }); 651 loadMapData(); // go load the map data 648 652 // setup the search box and center button 649 653 initSearch(); … … 653 657 setMarkers(); 654 658 655 loadMapData(); // go load the map data656 659 657 660 // Start a timer to refresh the map every 10 seconds -
trunk/src/cptms/messagefile.txt
r301 r303 1 ["zero||","||","||","||","||","||","||","||","||","||","slow for|work zone |","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||"," slow| traffic| ahead","||"," slow down| turtles on | roadway"," caution| slow traffic| ahead"," slow down| turtles on| roadway","||","free tomatoes!|U-Pick from |roadway","||","||","||","||","||","||","||","||","||","bottom of 5th|Dodgers up by 2|","||","||","watch out for|falling rocks|","||","||","||","||","||","||","||","||","||","||","||","||"," caution|debris on road|","||","||","||","||","||","||","||","||","||","||","||","||"]1 ["zero||","||","||","||","||","||","||","||","||","||","slow for|work zone |","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||"," slow| traffic| ahead","||"," slow down| turtles on | roadway"," caution| slow traffic| ahead"," slow down| turtles on| roadway","||","free tomatoes!|U-Pick from |roadway","||","||","||","||","||","||","||","||","||","bottom of 5th|Dodgers up by 2|","||","||","watch out for|falling rocks|","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||","||"]
Note: See TracChangeset
for help on using the changeset viewer.
