Hi,
After I get the longitude and latitude coordinates, I need to display google map/virtual earth in the PDA. I had downloaded a software to launch map in PDA. But then when I deployed my codings, I'm still unable to display the map in the web browser.
This is my coding:
Public Class Map
Public Sub New(ByVal Lat As String, ByVal Lon As String)
InitializeComponent()
If (Lat = String.Empty Or Lon = String.Empty) Then
Me.Dispose()
Else
TextBox1.Text = Lat
TextBox2.Text = Lon
End If
Try
Dim queryAddress As New StringBuilder()
If Lat <> String.Empty AndAlso Lon <> String.Empty Then
queryAddress.Append("http://maps.google.com/?q=Singapore") '& Lat & "," & Lon)
End If
Dim M As New Uri(queryAddress.ToString)
WebBrowser1.Url = M
Catch ex As Exception
MessageBox.Show(ex.Message.ToString(), "Error")
End Try
End Sub
End Class
Anyone has any idea on how to display the map?