Changeset 5307 in ntrip


Ignore:
Timestamp:
Jun 29, 2013, 10:00:55 PM (9 years ago)
Author:
weber
Message:

Track plot completed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/map/map_osm.html

    r5302 r5307  
    2323      var toProjection;
    2424      var dotSize;
     25      var dotColor;
    2526      var zoom;
    2627
    27       function initialize(lat, lon, mapWinSize) {
    28         dotSize = mapWinSize;
     28      function initialize(lat, lon, mapWinDotSize, mapWinDotColor) {
     29        dotSize = mapWinDotSize;
     30        dotColor = mapWinDotColor;
     31
    2932        if (dotSize > 10) dotSize = 10;
    3033
     
    4750
    4851        var sizeT   = new OpenLayers.Size(dotSize,dotSize);
    49         var offsetT = new OpenLayers.Pixel(-sizeT.w/2, -13);
    50         traceIcon   = new OpenLayers.Icon("qrc:///map/reddot.png", sizeT, offsetT);
     52        var offsetT = new OpenLayers.Pixel(-sizeT.w/2, -13);
     53        if (dotColor == 1) {
     54          traceIcon   = new OpenLayers.Icon("qrc:///map/reddot.png", sizeT, offsetT);
     55        }
     56        if (dotColor == 2) {
     57          traceIcon   = new OpenLayers.Icon("qrc:///map/yellowdot.png", sizeT, offsetT);
     58        }
    5159
    5260        markers = new OpenLayers.Layer.Markers("Markers");
Note: See TracChangeset for help on using the changeset viewer.