Changeset 5251 in ntrip


Ignore:
Timestamp:
Jun 17, 2013, 12:42:07 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5248 r5251  
    1919      var marker;
    2020      var icon; 
     21      var traceIcon;
    2122      var fromProjection;
    2223      var toProjection;
     
    4243        var size    = new OpenLayers.Size(40,40);
    4344        var offset  = new OpenLayers.Pixel(-size.w/2, -size.h/2);
     45        icon        = new OpenLayers.Icon("qrc:///map/crosshair.png", size, offset);
    4446
    45         icon    = new OpenLayers.Icon("qrc:///map/crosshair.png", size, offset);
     47        var sizeT   = new OpenLayers.Size(4,4);
     48        var offsetT = new OpenLayers.Pixel(-sizeT.w/2, -sizeT.h/2);
     49        traceIcon   = new OpenLayers.Icon("qrc:///map/reddot.png", sizeT, offsetT);
     50
    4651        markers = new OpenLayers.Layer.Markers("Markers");
    4752        marker  = new OpenLayers.Marker(position, icon);
     
    6671        markers.addMarker(marker);
    6772        if (useTrace == 1) {
    68           var trace = new OpenLayers.Marker(position);
     73          var trace = new OpenLayers.Marker(position, traceIcon);
    6974          markers.addMarker(trace);
    7075        }
Note: See TracChangeset for help on using the changeset viewer.