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
 
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
Not tested:

Change the code of AddGroundOverlay:
Code:
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:
Code:
overlay.SetField("map", Null)
 
Upvote 0

Similar Threads

Replies
13
Views
6K
  • Article Article
Android Code Snippet [B4X] Custom GoogleMaps
Replies
13
Views
10K
  • Locked
  • Article Article
Replies
39
Views
30K
  • Locked
  • Article Article
Replies
94
Views
80K
Back
Top