Hi all, this code works great and activates the traffic layer on the map.
https://www.b4x.com/android/forum/threads/traffic-layer-on-jgoogle-maps.102370/post-642587
But I would like to disable it...How to do it?
https://www.b4x.com/android/forum/threads/traffic-layer-on-jgoogle-maps.102370/post-642587
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});
"$)))
But I would like to disable it...How to do it?