Changeset 5251 in ntrip
- Timestamp:
- Jun 17, 2013, 12:42:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/map_osm.html
r5248 r5251 19 19 var marker; 20 20 var icon; 21 var traceIcon; 21 22 var fromProjection; 22 23 var toProjection; … … 42 43 var size = new OpenLayers.Size(40,40); 43 44 var offset = new OpenLayers.Pixel(-size.w/2, -size.h/2); 45 icon = new OpenLayers.Icon("qrc:///map/crosshair.png", size, offset); 44 46 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 46 51 markers = new OpenLayers.Layer.Markers("Markers"); 47 52 marker = new OpenLayers.Marker(position, icon); … … 66 71 markers.addMarker(marker); 67 72 if (useTrace == 1) { 68 var trace = new OpenLayers.Marker(position );73 var trace = new OpenLayers.Marker(position, traceIcon); 69 74 markers.addMarker(trace); 70 75 }
Note:
See TracChangeset
for help on using the changeset viewer.