D davidmd Member Licensed User Longtime User Feb 4, 2013 #1 Hi I know it been asked, in different way .. I tried, Can not get it work.. Will appreciate any help and advice Regards! The Codes: Sub GPS_LocationChanged (Location1 As Location) lattt.Text = "Lat = " & Location1.ConvertToMinutes(Location1.Latitude) lontt.Text = "Lon = " & Location1.ConvertToMinutes(Location1.Longitude) userLocation = Location1 url ="http://maps.google.com/maps?ll=userLocation.Latitude,userLocation.Longitude" WebView1.LoadUrl(url) End Sub
Hi I know it been asked, in different way .. I tried, Can not get it work.. Will appreciate any help and advice Regards! The Codes: Sub GPS_LocationChanged (Location1 As Location) lattt.Text = "Lat = " & Location1.ConvertToMinutes(Location1.Latitude) lontt.Text = "Lon = " & Location1.ConvertToMinutes(Location1.Longitude) userLocation = Location1 url ="http://maps.google.com/maps?ll=userLocation.Latitude,userLocation.Longitude" WebView1.LoadUrl(url) End Sub
warwound Expert Licensed User Longtime User Feb 4, 2013 #2 Looks like you need to properly concatenate your url string: Code: Copy url = "http://maps.google.com/maps?ll="&userLocation.Latitude&","&userLocation.Longitude Log(url) WebView1.LoadUrl(url) Martin. Upvote 0
Looks like you need to properly concatenate your url string: Code: Copy url = "http://maps.google.com/maps?ll="&userLocation.Latitude&","&userLocation.Longitude Log(url) WebView1.LoadUrl(url) Martin.
P pixelpop Active Member Licensed User Longtime User Feb 9, 2013 #4 warwound: what would you add to the Url to show a marker at the same lat/long? Upvote 0
warwound Expert Licensed User Longtime User Feb 9, 2013 #5 There used to be a page on the Mapki that listed many available URL parameters but it looks as though the Mapki is no longer online. https://www.google.co.uk/search?q=google+maps+url+parameters&ie=UTF-8&oe=UTF-8 Do you want a static map or a (draggable and pannable) interactive map? I don't think there's much official documentation for URL parameters to the interactive map at maps.google.com but the static maps api is better documented: https://developers.google.com/maps/documentation/staticmaps/. Martin. Upvote 0
There used to be a page on the Mapki that listed many available URL parameters but it looks as though the Mapki is no longer online. https://www.google.co.uk/search?q=google+maps+url+parameters&ie=UTF-8&oe=UTF-8 Do you want a static map or a (draggable and pannable) interactive map? I don't think there's much official documentation for URL parameters to the interactive map at maps.google.com but the static maps api is better documented: https://developers.google.com/maps/documentation/staticmaps/. Martin.
G gadgetmonster Active Member Licensed User Longtime User Apr 9, 2013 #6 Hi, To place a pin on a map: Code: Copy url = "http://maps.google.com/maps?q=" & LocLatitude & "," & LocLongitude & "&ll=" & LocLatitude & "," & LocLongitude WebView1.LoadUrl(url) The q parameter places the pin and the ll parameter centres the map at that location. Upvote 0
Hi, To place a pin on a map: Code: Copy url = "http://maps.google.com/maps?q=" & LocLatitude & "," & LocLongitude & "&ll=" & LocLatitude & "," & LocLongitude WebView1.LoadUrl(url) The q parameter places the pin and the ll parameter centres the map at that location.
tigrot Well-Known Member Licensed User Longtime User Apr 9, 2013 #7 Faulty GPS library conversion. Note that some conversion in GPS library is faulty. I had to write mine. Upvote 0
Faulty GPS library conversion. Note that some conversion in GPS library is faulty. I had to write mine.