Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Type markerInfo (lat As Double, ln As Double, title As String)
Private gmap As GoogleMap
Private mapOfMarkers As Map
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
gmap.Initialize("test",Null)
mapOfMarkers.Initialize
Dim m As Marker = gmap.AddMarker(100,100,"test")
Dim mk As markerInfo
mk.lat = 100
mk.ln = 100
mk.title = "test"
mapOfMarkers.Put(m,mk)
MainForm.Show
End Sub
'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub
private Sub test_MarkerClick (SelectedMarker As Marker)
Dim mk As markerInfo = mapOfMarkers.Get(SelectedMarker)
Log(mk.title)
End Sub