start google maps in webview

Cor

Active Member
Licensed User
Longtime User
answer to myself:

this works


B4X:
      Webline="http://code.google.com/intl/nl-NL/apis/maps/documentation/javascript/v2/examples/map-simple.html"
      WebView1.LoadUrl(Webline)
 
Upvote 0

mistermentality

Active Member
Licensed User
Longtime User
You are right it does work, you can also pass it gps co ordinates as part of the url, for example:

B4X:
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

pawelmic

Member
Licensed User
Longtime User
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
Top