Hi
How to know if the label is currently displayed or not when the MarkerClick event is clicked ?
Erel gaves this code snippet for B4i, I just would like the equivalent on Android, please
How to know if the label is currently displayed or not when the MarkerClick event is clicked ?
Erel gaves this code snippet for B4i, I just would like the equivalent on Android, please
B4X:
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