Sub gmap_Click (Point As LatLng)
Log($"$1.3{Point.Latitude} / $1.3{Point.Longitude}"$)
Private pt As LatLng
pt.Initialize(Point.Latitude,Point.Longitude)
shape.Add(pt)
' shape.Add(Point)
' If Point is used directly then an error occurs
'netscape.javascript.JSException: ReferenceError: Can't find variable: LatLong45
If (poly.IsInitialized) Then
gmap.RemovePolygon(poly)
End If
poly = gmap.AddPolygon(shape,1,fx.Colors.Red,fx.Colors.Cyan,0.2)
End Sub