G GraemeW Member Licensed User Longtime User Mar 29, 2026 #1 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?
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?
Solution G G GraemeW Mar 29, 2026 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
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
G GraemeW Member Licensed User Longtime User Mar 29, 2026 #2 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
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