Changeset 9807 in ntrip for trunk/BNC/src/map
- Timestamp:
- Aug 23, 2022, 2:08:11 PM (2 years ago)
- Location:
- trunk/BNC/src/map
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/bncmapwin.cpp
r9802 r9807 47 47 bncMapWin::bncMapWin(QWidget* parent) : QDialog(parent) { 48 48 49 _initMap = false; 50 49 51 const int ww = QFontMetrics(font()).width('w'); 50 52 … … 84 86 85 87 show(); 88 86 89 } 87 90 … … 114 117 return; 115 118 } 119 _initMap = true; 120 116 121 bncSettings settings; 117 122 int mapWinDotSize = settings.value("PPP/mapWinDotSize").toInt(); … … 127 132 //////////////////////////////////////////////////////////////////////////// 128 133 void bncMapWin::gotoLocation(double lat, double lon) { 134 if (!lat && !lon) { 135 return; 136 } 129 137 _currLat = lat; 130 138 _currLon = lon; 131 132 if (!_webView->page()) {133 return;134 }135 139 136 140 int latDeg, latMin; … … 157 161 return; 158 162 } 159 163 if (!_initMap) { 164 return; 165 } 160 166 double ell[3]; 161 xyz2ell(xx.data(), ell); 167 if (xyz2ell(xx.data(), ell) == failure) { 168 return; 169 } 162 170 gotoLocation(ell[0]*180.0/M_PI, ell[1]*180.0/M_PI); 163 171 } -
trunk/BNC/src/map/bncmapwin.h
r8909 r9807 62 62 double _currLon; 63 63 QByteArray _staID; 64 bool _initMap; 64 65 }; 65 66
Note:
See TracChangeset
for help on using the changeset viewer.