Changeset 5246 in ntrip for trunk/BNC/src/map
- Timestamp:
- Jun 17, 2013, 10:29:51 AM (11 years ago)
- Location:
- trunk/BNC/src/map
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/bncmapwin.cpp
r5234 r5246 115 115 return; 116 116 } 117 QString location = QString("%1, %2").arg(_currLat,0,'f',8).arg(_currLon,0,'f',8); 117 bncSettings settings; 118 int useTrace = (Qt::CheckState(settings.value("mapWinTrace").toInt()) == Qt::Checked) ? 1 : 0; 119 QString location = QString("%1, %2, %3").arg(_currLat,0,'f',8).arg(_currLon,0,'f',8).arg(useTrace); 118 120 _webView->page()->mainFrame()->evaluateJavaScript(QString("initialize( %1 )").arg(location)); 119 121 } -
trunk/BNC/src/map/map_gm.html
r5245 r5246 15 15 var marker; 16 16 var zoom; 17 var useTrace; 17 18 18 function initialize(lat, lon ) {19 function initialize(lat, lon, trace) { 19 20 21 useTrace = trace; 22 20 23 var myOptions = { 21 24 center: new google.maps.LatLng(lat, lon), … … 49 52 map.setCenter(position); 50 53 marker.setPosition(position); 54 55 if (useTrace == 1) { 56 var trace = new google.maps.Marker({ 57 map: map, 58 position: new google.maps.LatLng(lat, lon), 59 }); 60 } 51 61 } 52 62 </script>
Note:
See TracChangeset
for help on using the changeset viewer.