Changeset 337 in tmcsimulator for trunk/webapps/js
- Timestamp:
- 03/20/2019 11:25:24 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/webapps/js/vdsLayer.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
