start google maps in webview

answer to myself:

this works


Code:
      Webline="http://code.google.com/intl/nl-NL/apis/maps/documentation/javascript/v2/examples/map-simple.html"
      WebView1.LoadUrl(Webline)
 
Upvote 0
You are right it does work, you can also pass it gps co ordinates as part of the url, for example:

Code:
url = "http://maps.google.com/maps/api/staticmap?center=" & latitude & "," & longitude & "&zoom=19&size=300x290" & "&markers=color:blue%7Clabel:You%" & latitude & "," & longitude  & "format=jpg&maptype=hybrid&sensor=True"

WebView1.LoadUrl(url)

In this example url is a previously Dim'd string and latitude and longitude are also previously created strings. The size parameter is simply the size of my webview that I load the url into.

Dave
 
Upvote 0
can't seem to get this working

I tried both of your suggestions and I can't seem to get this to work ... nothing loads in my WebView "control" :BangHead:
 
Upvote 0
Back
Top