Android Question Google Maps Marker zIndex?

GraemeW

Member
Licensed User
Longtime User
I've searched and tried for hours but can't find how to set zIndex for a Marker object, or MarkerOptions or MarkerExtras. Does anyone know how?

It can be done for Circles, Polylines and Polygons but, it seems, not for Markers.

I've tried this, and many other combinations, without success
B4X:
Dim jo As JavaObject = myMarker
jo.RunMethod( "setZIndex", Array( 10 ) )

(in this case the error is - java.lang.RuntimeException: java.lang.RuntimeException: Method: setZIndex not matched - despite setZIndex being available here)

Any ideas?
 

GraemeW

Member
Licensed User
Longtime User
Solved

B4X:
Dim z As Float = 10
Dim jo As JavaObject = myMarkerOptions
jo.RunMethod( "zIndex", Array(z) ) 'z must be Float, not Double or Int
 
Upvote 1
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…