Changeset 357 in tmcsimulator


Ignore:
Timestamp:
04/07/2019 05:59:24 PM (7 years ago)
Author:
jdalbey
Message:

minor edits to cptms

Location:
trunk/webapps
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/cptms.html

    r351 r357  
    214214    <script  src="js/controls.js"></script> 
    215215    <script  src="js/night_mode.js"></script> 
    216     <!-- Using John's API Key 
    217     <script async defer 
    218     src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD6iTyN0DjP-9OVkAgicyp4tkC10naE_B8&libraries=places&callback=initMap"> 
    219     </script> 
    220  --> 
     216 
    221217    <!-- Project API Key --> 
    222218    <script async defer 
  • trunk/webapps/js/cctvLayer.js

    r351 r357  
    6363        nearVDS = map.data.getFeatureById(event.feature.getProperty("nearVDS")); 
    6464        currentColor = nearVDS.getProperty("color"); 
     65        // Currently, Fast and Slow images are stored in separate folders. 
     66        // As Neil gets actual images collated, we will change this to a file name scheme 
     67        // rte-id-velocity.jpg  
     68        // rte is route number, e.g., 055 
     69        // id is 4-digit camera id, e.g., 0012 
     70        // vel is traffic velocity: "freeflow", "slow", or "stopped" 
    6571        var imgDir = "CCTVFast/"; 
    6672        if (currentColor == "red" || currentColor == "yellow") 
  • trunk/webapps/js/harLayer.js

    r351 r357  
    152152                if (item.har.message.phase1.Line1 == "") 
    153153                { 
    154                     cmsLayer.overrideStyle(cmsLayer.getFeatureById(item.har.index), {icon: iconHARidle}) 
     154                    harLayer.overrideStyle(harLayer.getFeatureById(item.har.index), {icon: iconHARidle}) 
    155155                } 
    156156                else 
    157157                { 
    158                     cmsLayer.overrideStyle(cmsLayer.getFeatureById(item.har.index), {icon: iconHARactive}) 
     158                    harLayer.overrideStyle(harLayer.getFeatureById(item.har.index), {icon: iconHARactive}) 
    159159                }    
    160160            } 
Note: See TracChangeset for help on using the changeset viewer.