Changeset 351 in tmcsimulator for trunk/webapps/js/harLayer.js
- Timestamp:
- 03/31/2019 10:20:47 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/webapps/js/harLayer.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/js/harLayer.js
r338 r351 93 93 { 94 94 document.getElementById('har-msgdisplay1').value = ""; 95 save Message("");95 saveHARMessage(""); 96 96 } 97 97 … … 102 102 var harID = document.getElementById('harID').value; 103 103 HARmessageDict[harID].har.message.phase1.Line1 = outMessage; 104 105 // TODO Set icon to reflect message state 104 // Set icon to reflect message state 106 105 if (outMessage == "") 107 106 { 107 currentIcon = {icon: iconHARidle}; 108 108 } 109 109 else 110 110 { 111 currentIcon = {icon: iconHARactive}; 111 112 } 112 //harLayer.overrideStyle(harLayer.getFeatureById(harID), currentIcon)113 // break the json string into lines for readability113 harLayer.overrideStyle(harLayer.getFeatureById(harID), currentIcon) 114 // convert messasge to json string 114 115 jsonstring = JSON.stringify(Object.values(HARmessageDict)); 115 116 outString = "{\"data\":" + jsonstring + "}"; … … 147 148 var item = messagejson.data[i]; 148 149 HARmessageDict[item.har.index] = item; 149 // TODOSet the appropriate icon on the har icon150 // Set the appropriate icon on the har icon 150 151 // if there's currently no message 151 152 if (item.har.message.phase1.Line1 == "") 152 153 { 154 cmsLayer.overrideStyle(cmsLayer.getFeatureById(item.har.index), {icon: iconHARidle}) 153 155 } 154 156 else 155 157 { 156 } 158 cmsLayer.overrideStyle(cmsLayer.getFeatureById(item.har.index), {icon: iconHARactive}) 159 } 157 160 } 158 161 });
Note: See TracChangeset
for help on using the changeset viewer.
