Sub AddSizedMarker(g As GoogleMap,lat As Double,lng As Double, title As String, iconuri As String, iconsize As Int) As Marker
Dim m As Marker = g.AddMarker(lat,lng, title)
Dim jo As JavaObject = m
jo.GetFieldJO("jsObject").RunMethod("eval", Array($"
var image = {
url: '${iconuri}',
size: new google.maps.Size(${iconsize},${iconsize}),
scaledSize:new google.maps.Size(${iconsize},${iconsize}),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(0, ${iconsize/2})
};
this.setIcon(image);
"$))
Return m
End Sub