Dim obj1 As Reflector
obj1.Target = Gmap.GetUiSettings
obj1.RunPublicmethod("setMapToolbarEnabled", Array As Object(False), Array As String("java.lang.boolean"))
I think so.This piece of code is working but is it the optimum way to do it?
How would you have done it with javaobject?I think so.
Using JavaObject would have resulted in slightly less code but that's neither here nor there.
Can I call an event when a marker is clicked? not the infowindow but the marker.It's worth mentioning that the MapToolbar appears only when:
- Your map contains Markers.
- A Marker is clicked.
- An InfoWindow is then displayed.
If you handle Marker clicks yourself rather than letting the GoogleMap handle Marker clicks then you'll see the MapToolbar only if your Marker click handler Sub returns False.