Android Tutorial [B4X] [B4XPages] GoogleMaps example

Erel

Administrator
Staff member
Licensed User
1594642169087.png


Example of showing a Google map, in a cross platform B4XPages project. The APIs of the three GoogleMaps libraries are quite different from one another, so we need to use platform specific code for the map creation. Still, it is quite simple to further extend this project and build a cross platform solution.

A different key is required for each platform:
B4A - https://www.b4x.com/android/forum/threads/google-maps.63930/#content
B4J - https://www.b4x.com/android/forum/threads/56744/#content
B4i - https://www.b4x.com/android/forum/threads/47019/#content

In B4i you need to add GoogleMaps.bundle to B4i\Files\Special. It was removed as it is too big for the forum. You can find it in the example project from the above tutorial.

Note that there was an issue in iGoogleMaps v1.41. It was fixed in the hosted builders and will be included in the local builders of B4i v6.80.
 

Attachments

oparra

Active Member
Licensed User
b4a and b4j very good.

note: you Api KEY ?? :rolleyes:
b4j


no problem use.
 
Last edited by a moderator:

Beja

Expert
Licensed User
View attachment 97060

Example of showing a Google map, in a cross platform B4XPages project. The APIs of the three GoogleMaps libraries are quite different from one another, so we need to use platform specific code for the map creation. Still, it is quite simple to further extend this project and build a cross platform solution.

A different key is required for each platform:
B4A - https://www.b4x.com/android/forum/threads/google-maps.63930/#content
B4J - https://www.b4x.com/android/forum/threads/56744/#content
B4i - https://www.b4x.com/android/forum/threads/47019/#content

In B4i you need to add GoogleMaps.bundle to B4i\Files\Special. It was removed as it is too big for the forum. You can find it in the example project from the above tutorial.

Note that there was an issue in iGoogleMaps v1.41. It was fixed in the hosted builders and will be included in the local builders of B4i v6.80.
Perfect.. I tested the b4j version.. working like a charm.. code is simple and short -perfect for learning!
Thanks boss!
 

edgardomf

Member
Licensed User
Hola a todos, desde ya muchas gracias por los trabajos realizados en B4X.
Estoy tratando de manejar el GoogleMaps con B4A Ver 9.90 pero aunque probablemente todo lo realizado en
B4A - https://www.b4x.com/android/forum/threads/google-maps.63930/#content
y ademas el ejemplo Proyect.zip contenido aqui.
Siempre tengo el mismo inconveniente, No me muestra el mapa Inicial ni cuando presiono un lugar, aparece en Blanco.
Cuando copie el proyecto de B4A antes que este con gmap.MyLocation, me aparece bien Lon. y Lat. ...
Que puede ser.?
 

oparra

Active Member
Licensed User
Hola a todos, desde ya muchas gracias por los trabajos realizados en B4X.
Estoy tratando de manejar el GoogleMaps con B4A Ver 9.90 pero aunque probablemente todo lo realizado en
B4A - https://www.b4x.com/android/forum/threads/google-maps.63930/#content
y ademas el ejemplo Proyect.zip contenido aqui.
Siempre tengo el mismo inconveniente, No me muestra el mapa Inicial ni cuando presiono un lugar, aparece en Blanco.
Cuando copie el proyecto de B4A antes que este con gmap.MyLocation, me aparece bien Lon. y Lat. ...
Que puede ser.?
Post this here, there are members in Spanish who can help.

 
Top