Changeset 5306 in ntrip for trunk/BNC/src
- Timestamp:
- Jun 29, 2013, 10:00:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/map_gm.html
r5301 r5306 16 16 var zoom; 17 17 var dotSize; 18 var dotColor; 18 19 var traceIcon; 19 20 20 function initialize(lat, lon, mapWinSize) { 21 dotSize = mapWinSize; 21 function initialize(lat, lon, mapWinDotSize, mapWinDotColor) { 22 dotSize = mapWinDotSize; 23 dotColor = mapWinDotColor; 22 24 if (dotSize > 10) dotSize = 10; 23 25 … … 39 41 ); 40 42 41 traceIcon = new google.maps.MarkerImage("qrc:///map/reddot.png", 43 if (dotColor == 1) { 44 traceIcon = new google.maps.MarkerImage("qrc:///map/reddot.png", 42 45 null, 43 46 null, 44 47 new google.maps.Point(1, 1), 45 48 new google.maps.Size(dotSize, dotSize) 46 ); 49 ); 50 } 51 52 53 if (dotColor == 2) { 54 traceIcon = new google.maps.MarkerImage("qrc:///map/yellowdot.png", 55 null, 56 null, 57 new google.maps.Point(1, 1), 58 new google.maps.Size(dotSize, dotSize) 59 ); 60 } 47 61 48 62 marker = new google.maps.Marker({
Note:
See TracChangeset
for help on using the changeset viewer.