C Cor Active Member Licensed User Longtime User Feb 2, 2011 #1 Is it possible to start google maps in webview?
C Cor Active Member Licensed User Longtime User Feb 2, 2011 #2 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
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)
M mistermentality Active Member Licensed User Longtime User Feb 27, 2011 #3 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
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
P pawelmic Member Licensed User Longtime User Oct 5, 2012 #4 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
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: