Changeset 5298 in ntrip
- Timestamp:
- Jun 28, 2013, 2:35:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/map_osm.html
r5254 r5298 22 22 var fromProjection; 23 23 var toProjection; 24 var useTrace;24 var dotSize; 25 25 var zoom; 26 26 27 function initialize(lat, lon, trace) {28 useTrace = trace;27 function initialize(lat, lon, mapWinSize) { 28 dotSize = mapWinSize; 29 29 30 30 map = new OpenLayers.Map("basicMap", … … 45 45 icon = new OpenLayers.Icon("qrc:///map/crosshair.png", size, offset); 46 46 47 var sizeT = new OpenLayers.Size( 2,2);47 var sizeT = new OpenLayers.Size(dotSize,dotSize); 48 48 var offsetT = new OpenLayers.Pixel(-sizeT.w/2, -13); 49 49 traceIcon = new OpenLayers.Icon("qrc:///map/reddot.png", sizeT, offsetT); … … 70 70 marker = new OpenLayers.Marker(position, icon); 71 71 markers.addMarker(marker); 72 if ( useTrace == 1) {72 if (dotSize > 0) { 73 73 var trace = new OpenLayers.Marker(position, traceIcon.clone()); 74 74 markers.addMarker(trace);
Note:
See TracChangeset
for help on using the changeset viewer.