提交 addcde67 编写于 作者: 丁劲犇's avatar 丁劲犇 😸

correct windows MFC examples

上级 6944f85d
...@@ -172,7 +172,7 @@ void CMFC_ContainerDlg::OnBnClickedButtonPlay() ...@@ -172,7 +172,7 @@ void CMFC_ContainerDlg::OnBnClickedButtonPlay()
), ),
fm.c_str() fm.c_str()
); );
m_map.osm_layer_call_function(_T("geomarker1"), cmd); m_map.osm_layer_call_function(_T("geomarker"), cmd);
} }
} }
...@@ -224,14 +224,14 @@ void CMFC_ContainerDlg::OnTimer(UINT_PTR nIDEvent) ...@@ -224,14 +224,14 @@ void CMFC_ContainerDlg::OnTimer(UINT_PTR nIDEvent)
), ),
m_currentLat, m_currentLon, 90-m_direct m_currentLat, m_currentLon, 90-m_direct
); );
m_map.osm_layer_call_function(_T("geomarker1"), cmd); m_map.osm_layer_call_function(_T("geomarker"), cmd);
cmd.Format(_T("function=update_props;name=point1;" cmd.Format(_T("function=update_props;name=point1;"
"lat=%.8lf;lon=%.8lf;direct=%.8lf;" "lat=%.8lf;lon=%.8lf;direct=%.8lf;"
), ),
m_currentLat, m_currentLon, m_direct m_currentLat, m_currentLon, m_direct
); );
m_map.osm_layer_call_function(_T("geomarker1"), cmd); m_map.osm_layer_call_function(_T("geomarker"), cmd);
//Lines //Lines
m_list_old_lats.push_front(m_currentLat); m_list_old_lats.push_front(m_currentLat);
...@@ -261,7 +261,7 @@ void CMFC_ContainerDlg::OnTimer(UINT_PTR nIDEvent) ...@@ -261,7 +261,7 @@ void CMFC_ContainerDlg::OnTimer(UINT_PTR nIDEvent)
int((1 - c * 1.0/ maxsz)*255), int((1 - c * 1.0/ maxsz)*255),
int((1 - c * 1.0 / maxsz) * 6)+1 int((1 - c * 1.0 / maxsz) * 6)+1
); );
m_map.osm_layer_call_function(_T("geomarker1"), cmd); m_map.osm_layer_call_function(_T("geomarker"), cmd);
lastlat = *latp, lastlon = *lonp; lastlat = *latp, lastlon = *lonp;
...@@ -371,4 +371,4 @@ _tstring export_res() ...@@ -371,4 +371,4 @@ _tstring export_res()
FreeResource(lpRsrc); FreeResource(lpRsrc);
return std::move(fm); return std::move(fm);
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册