Dim JSMap As JavaObject = gmap
Dim r As Reflector
r.Target = JSMap.GetField("map")
Dim MapJSName As String = r.GetField("variableName")
Dim javascript As JavaObject
javascript = javascript.InitializeStatic("com.lynden.gmapsfx.javascript.JavascriptRuntime").RunMethod("getInstance", Null)
Log(javascript.RunMethod("execute", Array($"
var trafficLayer = new google.maps.TrafficLayer();
trafficLayer.setMap(${MapJSName});
"$)))
Dim JSMap As JavaObject = gmap
Dim r As Reflector
r.Target = JSMap.GetField("map")
Dim MapJSName As String = r.GetField("variableName")
Dim javascript As JavaObject
javascript = javascript.InitializeStatic("com.lynden.gmapsfx.javascript.JavascriptRuntime").RunMethod("getInstance", Null)
Log(javascript.RunMethod("execute", Array($"
var trafficLayer = new google.maps.TrafficLayer();
trafficLayer.setMap(${MapJSName});
"$)))