Changeset 5307 in ntrip for trunk/BNC/src/map/map_osm.html
- Timestamp:
- Jun 29, 2013, 10:00:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/map_osm.html
r5302 r5307 23 23 var toProjection; 24 24 var dotSize; 25 var dotColor; 25 26 var zoom; 26 27 27 function initialize(lat, lon, mapWinSize) { 28 dotSize = mapWinSize; 28 function initialize(lat, lon, mapWinDotSize, mapWinDotColor) { 29 dotSize = mapWinDotSize; 30 dotColor = mapWinDotColor; 31 29 32 if (dotSize > 10) dotSize = 10; 30 33 … … 47 50 48 51 var sizeT = new OpenLayers.Size(dotSize,dotSize); 49 var offsetT = new OpenLayers.Pixel(-sizeT.w/2, -13); 50 traceIcon = new OpenLayers.Icon("qrc:///map/reddot.png", sizeT, offsetT); 52 var offsetT = new OpenLayers.Pixel(-sizeT.w/2, -13); 53 if (dotColor == 1) { 54 traceIcon = new OpenLayers.Icon("qrc:///map/reddot.png", sizeT, offsetT); 55 } 56 if (dotColor == 2) { 57 traceIcon = new OpenLayers.Icon("qrc:///map/yellowdot.png", sizeT, offsetT); 58 } 51 59 52 60 markers = new OpenLayers.Layer.Markers("Markers");
Note:
See TracChangeset
for help on using the changeset viewer.