Changeset 9243 in ntrip


Ignore:
Timestamp:
Nov 11, 2020, 3:08:20 PM (3 years ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src/map
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/map/bncmapwin.cpp

    r9239 r9243  
    121121  }
    122122  QString location = QString("%1, %2, %3, %4").arg(_currLat,0,'f',8).arg(_currLon,0,'f',8).arg(mapWinDotSize).arg(mapWinDotColor);
    123   _webView->page()->runJavaScript(QString("gotoLocation( %1 )").arg(location));
     123  _webView->page()->runJavaScript(QString("initialize( %1 )").arg(location));
    124124}
    125125
  • trunk/BNC/src/map/map_osm.html

    r5385 r9243  
    1818      var markers;
    1919      var marker;
    20       var icon; 
     20      var icon;
    2121      var traceIcon;
    2222      var fromProjection;
     
    2828      function initialize(lat, lon, mapWinDotSize, mapWinDotColor) {
    2929        dotSize = mapWinDotSize;
    30         dotColor = mapWinDotColor;
     30            dotColor = mapWinDotColor;
    3131
    3232        if (dotSize > 10) dotSize = 10;
     
    3838        fromProjection = new OpenLayers.Projection("EPSG:4326");   // WGS 1984
    3939        toProjection   = new OpenLayers.Projection("EPSG:900913"); // Spherical Mercator
    40         zoom           = 0; 
     40        zoom           = 0;
    4141
    4242        map.addLayer(new OpenLayers.Layer.OSM());
     
    4848
    4949        var sizeT   = new OpenLayers.Size(dotSize,dotSize);
    50         var offsetT = new OpenLayers.Pixel(-sizeT.w/2, -13);
    51         if (dotColor == 1) {
     50            var offsetT = new OpenLayers.Pixel(-sizeT.w/2, -13);
     51            if (dotColor == 1) {
    5252          traceIcon   = new OpenLayers.Icon("qrc:///map/reddot.png", sizeT, offsetT);
    53         }
    54         if (dotColor == 2) {
     53        }
     54            if (dotColor == 2) {
    5555          traceIcon   = new OpenLayers.Icon("qrc:///map/yellowdot.png", sizeT, offsetT);
    56         }
     56            }
    5757
    5858        markers = new OpenLayers.Layer.Markers("Markers");
    5959        marker  = new OpenLayers.Marker(position, icon);
    6060        markers.addMarker(marker);
    61        
     61
    6262        map.addLayer(markers);
    6363
Note: See TracChangeset for help on using the changeset viewer.