Changeset 337 in tmcsimulator


Ignore:
Timestamp:
03/20/2019 11:25:24 AM (7 years ago)
Author:
jdalbey
Message:

CPTMS: Add white circle image and supporting code

Location:
trunk/webapps
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/cptms.html

    r336 r337  
    126126    }; 
    127127 
    128     var kVDSstatusFile = "highway_status.json"; // dynamic json data file created by CADserver 
    129     var kMapStartupFile = "data_layers/highways_startup.json"; // initial (static) highways file used once at startup 
     128    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 
    130130    var kCMSfile = "data_layers/cms_locations_D12.gjson"; // CMS locations  
    131131    var kCCTVfile = "data_layers/cctv_locations_D12.gjson"; // CCTV locations 
     
    138138    var iconVDSyellow = "images/circle_yellow.png" 
    139139    var iconVDSred = "images/circle_red.png" 
     140    var iconVDSwhite = "images/circle_white.png" 
    140141    var iconHARactive = "images/icon_har_active.png"; 
    141142    var cms_showing = false; 
  • trunk/webapps/js/vdsLayer.js

    r333 r337  
    11    // 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)  
    43    { 
    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; 
    95        if (color == 'red') 
    106        { 
     
    1511            iconPath = iconVDSyellow; 
    1612        } 
     13        else if (color == 'lime') 
     14        { 
     15            iconPath = iconVDSgreen; 
     16        } 
    1717        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) 
    3020        }; 
    3121    } 
     
    3626        // Load the static map data and call saveCoords when done 
    3727        map.data.loadGeoJson(kMapStartupFile, null, saveCoords) 
    38 //        var d = new Date(); 
    39 //        var start = d.getTime(); 
    4028        // Style the map data by applying the desired properties to each feature (marker) 
    4129        // The function will be called every time a feature's properties are updated. 
     
    5240            return { 
    5341                icon: iconSymbol, 
    54 /*                    icon:  
    55                     { 
    56                         url: vdsIconGreen,  
    57                         anchor: new google.maps.Point(6, 6) 
    58                     }, */ 
    5942                title: name + " @" + street, // set rollover text 
    6043                // set zIndex for slowed traffic to a higher value so they overlap 
Note: See TracChangeset for help on using the changeset viewer.