Google Maps v2 - B4A programming guide?

PaulD

Member
Licensed User
Longtime User
I apologize as I am a total :sign0104:

I have been reading everything I can find within the community and on Google's development documentation site... however the same strings of code that are on the Google site, do not seem to work within B4A... am I missing something?

i.e.

According to this page, I can change the "Icon" to anything I want, however copying the code into B4A only gives me errors...

I guess my real question is, does a list of commands that work with B4A exist with an explanation of what they do?

The B4A code is:

gmap.AddMarker(38.7522, -121.2869, "Hello!!!")

The code on Google is:

mMap.addMarker(new MarkerOptions()
.position(new LatLng(0, 0))
.title("Hello!!!"));

On the Google documentation page, simple code like .icon() won't work in B4A

?????
Please help me understand what I am doing wrong...

Thank you in advance for helping out such a noob...
 
The Basic4android - GoogleMaps is Exactly what I was looking for... thank you!

for some reason I am just not getting this line...

AddMarker2 (Lat As Double, Lon As Double, Title As String, HueColor As Float) As Marker

I wrote,

gmap.AddMarker2(38, -121, "Blue Marker", HUE_BLUE As Float)

Obviously "Blue Marker" is the title and can be anything I want... where I am having an issue is setting the color of the marker... what should that code look like???
 
Upvote 0

Similar Threads

  • Locked
  • Article Article
Android Tutorial Google Maps
Replies
192
Views
205K
Replies
811
Views
535K
Replies
186
Views
269K
Back
Top