Changeset 5298 in ntrip


Ignore:
Timestamp:
Jun 28, 2013, 2:35:07 PM (9 years ago)
Author:
weber
Message:

Trace map function modified

File:
1 edited

Legend:

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

    r5254 r5298  
    2222      var fromProjection;
    2323      var toProjection;
    24       var useTrace;
     24      var dotSize;
    2525      var zoom;
    2626
    27       function initialize(lat, lon, trace) {
    28         useTrace = trace;
     27      function initialize(lat, lon, mapWinSize) {
     28        dotSize = mapWinSize;
    2929
    3030        map = new OpenLayers.Map("basicMap",
     
    4545        icon        = new OpenLayers.Icon("qrc:///map/crosshair.png", size, offset);
    4646
    47         var sizeT   = new OpenLayers.Size(2,2);
     47        var sizeT   = new OpenLayers.Size(dotSize,dotSize);
    4848        var offsetT = new OpenLayers.Pixel(-sizeT.w/2, -13);
    4949        traceIcon   = new OpenLayers.Icon("qrc:///map/reddot.png", sizeT, offsetT);
     
    7070        marker = new OpenLayers.Marker(position, icon);
    7171        markers.addMarker(marker);
    72         if (useTrace == 1) {
     72        if (dotSize > 0) {
    7373          var trace = new OpenLayers.Marker(position, traceIcon.clone());
    7474          markers.addMarker(trace);
Note: See TracChangeset for help on using the changeset viewer.