B4J Question Google Maps webApp

francisco duran

Member
Licensed User
Longtime User
Hi friends, need your help.

I need to work with google maps from B4J in server mode.
Does anyone know a library or know how to do it?

Bye, thanks
 

TILogistic

Expert
Licensed User
Longtime User

or:

 
Upvote 0

francisco duran

Member
Licensed User
Longtime User
Hi Oparra, thanks for your info, i am very interest in use BANano, but can´t donwload, you take the .zip? In link is down.
Thanks

Byee
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
The BANanoVuetifyAD3 library now has LeafLet, I will post a demo for GoogleMaps soon. Get the library here:

You simply add markers like..

B4X:
VLeaflet1.AddMarker("1", "Mashy", 47.313221, -1.319483)
    '
    VLeaflet1.AddCircle("2", "Mashy's Circle", 47.313220, -1.0482, "red", 4500)
    '
    VLeaflet1.AddPolygon("3", "Mashy's Polygon", "green")
    '
    VLeaflet1.AddPolygonLatLngMap("3", CreateMap(47.2263299: -1.6222, _
    47.21024000000001: -1.6270065, _
    47.1969447: -1.6136169, _
    47.18527929999999: -1.6143036, _
    47.1794457: -1.6098404, _
    47.1775788: -1.5985107, _
    47.1676598: -1.5753365, _
    47.1593731: -1.5521622, _
    47.1593731: -1.5319061, _
    47.1722111: -1.5143967, _
    47.1960115: -1.4841843, _
    47.2095404: -1.4848709, _
    47.2291277: -1.4683914, _
    47.2533687: -1.5116501, _
    47.2577961: -1.5531921, _
    47.26828069: -1.5621185, _
    47.2657179: -1.589241, _
    47.2589612: -1.6204834, _
    47.237287: -1.6266632, _
    47.2263299: -1.6222))
    '
    VLeaflet1.AddPolyLine("4", "Mashy's Polyline", "green")
    VLeaflet1.AddPolyLineLatLngMap("4", CreateMap(47.334852: -1.509485, _
    47.342596: -1.328731, _
    47.241487: -1.190568, _
    47.234787: -1.358337))
    '
    'add a rectangle
    VLeaflet1.AddRectangle("5", "Mashy's Rectangle", 47.341456, -1.397133, 47.303901, -1.243813, "red", 3)
    
    VLeaflet1.Refresh(leaf)
    'show last marker    
    VLeaflet1.SetView(leaf, 47.313220, -1.319482, 8)

All the best
 
Upvote 0
Top