### Set Marker Properties

Google Maps Marker properties, like color, font size etc.
Reference: https://developers.google.com/maps/documentation/javascript/3.exp/reference#MarkerLabel
`Sub Process_Globals
Private gmap As GoogleMap
...
End Sub`
`Sub AppStart (Form1 As Form, Args() As String)
...
Dim options As MapOptions
options.StreetViewControl = False
gmap.Initialize("gmap", options)
End Sub`
`Sub gmap_Ready
Dim lat As Double = 52
Dim lon As Double = 9
Dim title As String = "Marker 1"
'Add a maker at lat & lon with title
Dim m As Marker = gmap.AddMarker(lat, lon, title)
'Set the marker label with properties color and size
SetMarkerLabel(m, title, "red", 14)
End Sub`
'Set the marker label text, text color and size
`Sub SetMarkerLabel(m As Marker, text As String, textcolor As String, textsize As Int)
Dim jo As JavaObject = m
jo = jo.RunMethod("getJSObject", Null)
Dim propertyjs As String = $"this.setLabel({text: "${text}",color: "${textcolor}","fontSize": "${textsize}px"});"$
Log(jo.RunMethod("eval", Array(propertyjs)))
End Sub`

Changed: , Category: Google Maps, File: T6C197M1454.htm, ID: 1454