.Net語言 APP開發平臺——Smobiler學習日誌:在手機應用開發中如何實現跳轉地圖
阿新 • • 發佈:2017-05-11
demo hand 操作 窗體 clas com ps1 ati void
一、目標樣式
我們要實現上圖中的效果,需要如下的操作:
二、跳轉地圖代碼
VB:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Me.Gps1.GetGpsAsyn(Sub(s As Object, args As GPSData)
Me.ShowMap(args.Latitude, args.Longitude, "當前位置")
End Sub)
End Sub
C#:
private void Button1_Click(object sender, EventArgs e)
{
this.gps1.GetGpsAsyn();
}
private void gps1_GotLocation(object sender, GPSData e)
{
this.ShowMap(e.Latitude, e.Longitude, "當前位置");
}
註:用GPS控件獲取當前的經度、緯度
三.Smobiler窗體設計界面顯示效果
四、手機效果顯示
.Net語言 APP開發平臺——Smobiler學習日誌:在手機應用開發中如何實現跳轉地圖