iOS Question GoogleMaps Marker label Event ?

imbault

Well-Known Member
Licensed User
Longtime User
Hi everyone,

Is it possible to have an event on a Title Label marker click ?

Many thanks

Patrick
 
So, Erel, how to know if the label is currently displayed or not when the MarkerClick event is clicked?
 
Upvote 0
You can use this code:
Code: Copy
Sub gmap_MarkerClick (SelectedMarker As Marker) As Boolean
   Dim ngm As NativeObject = gmap
   Dim infoWindowVisible As Boolean = True
   If ngm.GetField("selectedMarker").IsInitialized Then
     Dim current As Marker = ngm.GetField("selectedMarker")
     If current.Title = SelectedMarker.Title Then infoWindowVisible = False
   End If
   If infoWindowVisible Then
     Log("Snippet is shown")
   Else
     Log("Snippet is hidden")
   End If
   Return False
End Sub
 
Upvote 0

Similar Threads

Replies
13
Views
6K
  • Article Article
Android Code Snippet [B4X] Custom GoogleMaps
Replies
13
Views
10K
Replies
0
Views
2K
  • Locked
  • Article Article
Replies
39
Views
31K
Back
Top