.Net语言 APP开发平台——Smobiler学习日志:在手机应用开发中如何实现跳转地图

 

一、目标样式

smobiler

我们要实现上图中的效果,需要如下的操作:

二、跳转地图代码

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窗体设计界面显示效果

smobiler

四、手机效果显示

smobiler smobiler

相关文章