Changeset 333 in tmcsimulator for trunk/webapps
- Timestamp:
- 03/19/2019 05:59:34 AM (7 years ago)
- Location:
- trunk/webapps
- Files:
-
- 1 deleted
- 4 edited
-
cptms.html (modified) (1 diff)
-
images/CPTMSImages (deleted)
-
js/cmsLayer.js (modified) (3 diffs)
-
js/harLayer.js (modified) (1 diff)
-
js/vdsLayer.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/cptms.html
r330 r333 251 251 }; 252 252 253 var k MapPointsFile = "highway_status.json"; // dynamic json data file created by CADserver253 var kVDSstatusFile = "highway_status.json"; // dynamic json data file created by CADserver 254 254 var kMapStartupFile = "data_layers/highways_startup.json"; // initial (static) highways file used once at startup 255 255 var kCMSfile = "data_layers/cms_locations_D12.gjson"; // CMS locations 256 256 var kCCTVfile = "data_layers/cctv_locations_D12.gjson"; // CCTV locations 257 257 var kHARfile = "data_layers/har_locations_D12.gjson"; // CMS locations 258 var blueFlag = "images/icon_cmsBlue.png";259 var yellowFlag = "images/icon_cmsYellow.png";258 var iconCMSactive = "images/icon_cms_active.png"; 259 var iconCMSidle = "images/icon_cms_idle.png"; 260 260 var cctvIcon = "images/icon_cctvCyan.png"; 261 261 var cctvIconWhite = "images/icon_cctvWhite.png"; 262 var vdsIconGreen = "images/circle-green.png"263 var vdsIconYellow = "images/circle-yellow.png"264 var vdsIconRed = "images/circle-red.png"265 var harActive = "images/icon_harActive.png";262 var iconVDSgreen = "images/circle_green.png" 263 var iconVDSyellow = "images/circle_yellow.png" 264 var iconVDSred = "images/circle_red.png" 265 var iconHARactive = "images/icon_har_active.png"; 266 266 var cms_showing = false; 267 267 var vds_showing = true; -
trunk/webapps/js/cmsLayer.js
r327 r333 39 39 // return the StyleOptions 40 40 return { 41 icon: yellowFlag,41 icon: iconCMSidle, 42 42 title: feature.getId()+ " " +feature.getProperty("location")+ " " 43 43 + feature.getProperty("street"), … … 143 143 if (outMessage == "|||||") 144 144 { 145 currentIcon = {icon: yellowFlag};145 currentIcon = {icon: iconCMSidle}; 146 146 } 147 147 else 148 148 { 149 currentIcon = {icon: blueFlag};149 currentIcon = {icon: iconCMSactive}; 150 150 } 151 151 cmsLayer.overrideStyle(cmsLayer.getFeatureById(cmsID), currentIcon) … … 199 199 item.cms.message.phase2.Line3 == "") 200 200 { 201 cmsLayer.overrideStyle(cmsLayer.getFeatureById(item.cms.index), {icon: yellowFlag})201 cmsLayer.overrideStyle(cmsLayer.getFeatureById(item.cms.index), {icon: iconCMSidle}) 202 202 } 203 203 else 204 204 { 205 cmsLayer.overrideStyle(cmsLayer.getFeatureById(item.cms.index), {icon: blueFlag})205 cmsLayer.overrideStyle(cmsLayer.getFeatureById(item.cms.index), {icon: iconCMSactive}) 206 206 } 207 207 } -
trunk/webapps/js/harLayer.js
r327 r333 39 39 // return the StyleOptions 40 40 return { 41 icon: harActive,41 icon: iconHARactive, 42 42 title: feature.getId()+ " " +feature.getProperty("location")+ " " 43 43 + feature.getProperty("street"), -
trunk/webapps/js/vdsLayer.js
r326 r333 6 6 // var diamond = 'M -1,0 0,-1 1,0 0,1 z'; 7 7 // var myShape = circle; 8 var iconPath = vdsIconGreen;8 var iconPath = iconVDSgreen; 9 9 if (color == 'red') 10 10 { 11 iconPath = vdsIconRed;11 iconPath = iconVDSred; 12 12 } 13 13 else if (color == 'yellow') 14 14 { 15 iconPath = vdsIconYellow;15 iconPath = iconVDSyellow; 16 16 } 17 17 return { … … 136 136 { 137 137 var parsed_JSON; 138 loadJSON(k MapPointsFile, function(response)138 loadJSON(kVDSstatusFile, function(response) 139 139 { 140 140 // Parse JSON string into object
Note: See TracChangeset
for help on using the changeset viewer.
