Changeset 337 in tmcsimulator for trunk/webapps/js


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

CPTMS: Add white circle image and supporting code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.