Changeset 351 in tmcsimulator for trunk/webapps/js/cctvLayer.js
- Timestamp:
- 03/31/2019 10:20:47 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/webapps/js/cctvLayer.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/js/cctvLayer.js
r341 r351 68 68 imgDir = "CCTVSlow/" 69 69 } 70 var label = "freeflow"; 71 if (currentColor == "red") 72 { 73 label = "stopped"; 74 } 75 if (currentColor == "yellow") 76 { 77 label = "slow"; 78 } 79 70 80 // Demo of video embed - only on highway 241 locations 71 81 if (cctvIndex.startsWith("12-241")) 72 82 { 73 cctv_infowindow.setContent('<div style="font-weight:bold;font-family: monospace">' + cctvIndex + " " + cctvLocation + " " + currentColor + '<BR><video width="320" height="240" autoplay controlsloop><source src="images/TrafficFreeflow.ogv" type="video/ogg"></div>');83 cctv_infowindow.setContent('<div style="font-weight:bold;font-family: monospace">' + cctvIndex + " " + cctvLocation + " " + '<BR><video autoplay loop><source src="images/TrafficFreeflow.ogv" type="video/ogg"></div>'); 74 84 } 75 85 else 76 86 // image from fast or slow directories 77 87 { 78 cctv_infowindow.setContent('<div style="font-weight:bold;font-family: monospace">' + cctvIndex + " " + cctvLocation + " " + currentColor+ "<BR>" + imgTag + imgDir + cctvIndex + '.jpg">' + "</div>");88 cctv_infowindow.setContent('<div style="font-weight:bold;font-family: monospace">' + cctvIndex + " " + cctvLocation + " " +label+ "<BR>" + imgTag + imgDir + cctvIndex + '.jpg">' + "</div>"); 79 89 } 80 90 cctv_infowindow.setPosition(event.feature.getGeometry().get());
Note: See TracChangeset
for help on using the changeset viewer.
