### GoogleMap Object Event Hints

Various Hints related to the GoogleMap Object.
Example
Private MapTrack As GoogleMap
'Build the GoogleMap
Dim options As MapOptions
options.StreetViewControl = False
'Important: the eventname of the GoogleMap object must be in lowercase and the related events accordinly.
MapTrack.Initialize("maptrack", options)
'Handle Map is ready by setting flag ready. If thats done, the track can be build
`Sub maptrack_Ready
...
End Sub`
`Sub maptrack_Click (Point As LatLng)
Log("Clicked on Map Position " & Point.Latitude & " / " & Point.Longitude)
End Sub`
'A Marker map is used to get the title
'Private MarkerMap As Map
'MarkerMap.Initialize
'A sub mapTrack_AddMarker is used to add a marker to the map - see after the sub below
`Sub maptrack_MarkerClick (SelectedMarker As Marker)
Dim title As String = MarkerMap.Get(SelectedMarker)
Log("Clicked on Marker " & title)
End Sub`
`Sub mapTrack_AddMarker(mLatLng As LatLng, mMarkerInfo As String, mIcon As String) As Marker
Log("mapTrack_AddMarker: Loc=" & mLatLng.Latitude & "/" & mLatLng.Longitude)
Dim Result As Marker
Result = MapTrack.AddMarker2(mLatLng.Latitude, mLatLng.Longitude, mMarkerInfo, File.GetUri(File.DirAssets, mIcon))
MarkerMap.Put(Result, mMarkerInfo)
MarkerAttachInfoWindow(Result, "" & mMarkerInfo & "")
Return Result
End Sub`
`Sub maptrack_CameraChange (Position As CameraPosition)
Log("Camera Position changed to : " & Position.Target.Latitude & ", " & Position.Target.Longitude & ", Zoom: " & Position.Zoom)
End Sub`

Changed: , Category: Google Maps, File: T6C197M1445.htm, ID: 1445