iOS Question Grid on GoogleMaps

schimanski

Well-Known Member
Licensed User
Longtime User
Is it possible to show a grid over a map like the picture?

Thanks for help...
Karte1.png
 

schimanski

Well-Known Member
Licensed User
Longtime User
Thanky you! I added it with a transparent image and

B4X:
GoogleMapsExtra1.AddGroundOverlay(bounds, Gitter)

But is there a function to delete the overlay again?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Not tested:

Change the code of AddGroundOverlay:
B4X:
Public Sub AddGroundOverlay(Bounds As Object, Image As Bitmap) As NativeObject
    Dim overlay As NativeObject
    overlay = overlay.Initialize("GMSGroundOverlay").RunMethod( _
        "groundOverlayWithBounds:icon:", Array(Bounds, Image))
    overlay.SetField("map", gm)
   Return overlay
End Sub

Later delete the overlay with:
B4X:
overlay.SetField("map", Null)
 
Upvote 0
Top