Changeset 337 in tmcsimulator
- Timestamp:
- 03/20/2019 11:25:24 AM (7 years ago)
- Location:
- trunk/webapps
- Files:
-
- 1 added
- 2 edited
-
cptms.html (modified) (2 diffs)
-
images/circle_white.png (added)
-
js/vdsLayer.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/cptms.html
r336 r337 126 126 }; 127 127 128 var kVDSstatusFile = "highway_status .json"; // dynamic json data file created by CADserver129 var kMapStartupFile = "data_layers/highways_startup .json"; // initial (static) highways file used once at startup128 var kVDSstatusFile = "highway_status_test.json"; // dynamic json data file created by CADserver 129 var kMapStartupFile = "data_layers/highways_startup_test.json"; // initial (static) highways file used once at startup 130 130 var kCMSfile = "data_layers/cms_locations_D12.gjson"; // CMS locations 131 131 var kCCTVfile = "data_layers/cctv_locations_D12.gjson"; // CCTV locations … … 138 138 var iconVDSyellow = "images/circle_yellow.png" 139 139 var iconVDSred = "images/circle_red.png" 140 var iconVDSwhite = "images/circle_white.png" 140 141 var iconHARactive = "images/icon_har_active.png"; 141 142 var cms_showing = false; -
trunk/webapps/js/vdsLayer.js
r333 r337 1 1 // Build a solid colored icon to use instead of the classic pin 2 // Use a diamond on N and E directions, circle on S and W directions 3 function dotSymbol(color) //,direction) 2 function dotSymbol(color) 4 3 { 5 // var circle = google.maps.SymbolPath.CIRCLE; 6 // var diamond = 'M -1,0 0,-1 1,0 0,1 z'; 7 // var myShape = circle; 8 var iconPath = iconVDSgreen; 4 var iconPath = iconVDSwhite; 9 5 if (color == 'red') 10 6 { … … 15 11 iconPath = iconVDSyellow; 16 12 } 13 else if (color == 'lime') 14 { 15 iconPath = iconVDSgreen; 16 } 17 17 return { 18 // path: iconPath, 19 // icon: 20 // { 21 url: iconPath, 22 anchor: new google.maps.Point(6, 6) 23 // }; 24 // anchor: new google.maps.Point(6, 6), 25 // scale: 5, 26 // strokeColor: "black", // the border color 27 // strokeWeight: 1, // the border thickness 28 // fillColor: color, 29 // fillOpacity: 1.0 18 url: iconPath, 19 anchor: new google.maps.Point(6, 6) 30 20 }; 31 21 } … … 36 26 // Load the static map data and call saveCoords when done 37 27 map.data.loadGeoJson(kMapStartupFile, null, saveCoords) 38 // var d = new Date();39 // var start = d.getTime();40 28 // Style the map data by applying the desired properties to each feature (marker) 41 29 // The function will be called every time a feature's properties are updated. … … 52 40 return { 53 41 icon: iconSymbol, 54 /* icon:55 {56 url: vdsIconGreen,57 anchor: new google.maps.Point(6, 6)58 }, */59 42 title: name + " @" + street, // set rollover text 60 43 // set zIndex for slowed traffic to a higher value so they overlap
Note: See TracChangeset
for help on using the changeset viewer.
