1. 程式人生 > >.Net語言 APP開發平臺——Smobiler學習日誌:在手機應用開發中如何實現跳轉地圖

.Net語言 APP開發平臺——Smobiler學習日誌:在手機應用開發中如何實現跳轉地圖

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學習日誌:在手機應用開發中如何實現跳轉地圖