Cableguy Expert Licensed User Longtime User Jan 3, 2026 #1 Hi guys, I am trying to use the GMaps lib, but starting it with the designer property "visible" set to false.... but then... how do I set that prop by code so that I can make it visible? MapFragment does not expose such property (nor much else)
Hi guys, I am trying to use the GMaps lib, but starting it with the designer property "visible" set to false.... but then... how do I set that prop by code so that I can make it visible? MapFragment does not expose such property (nor much else)
TILogistic Expert Licensed User Longtime User Jan 3, 2026 #2 Use Javaobject. test: B4X: Dim jo As JavaObject = gmap Dim fragmentView As JavaObject = jo.RunMethod("getView", Null) fragmentView.RunMethod("setVisibility", Array(0)) ' 0=VISIBLE, 8=INVISIBLE, 4=GONE Upvote 0
Use Javaobject. test: B4X: Dim jo As JavaObject = gmap Dim fragmentView As JavaObject = jo.RunMethod("getView", Null) fragmentView.RunMethod("setVisibility", Array(0)) ' 0=VISIBLE, 8=INVISIBLE, 4=GONE
Cableguy Expert Licensed User Longtime User Jan 3, 2026 #3 I ended up using a simpler workaround, placing the mapfragment inside a panel, and controlling that panel's visibility. But thanks anyway! Upvote 0
I ended up using a simpler workaround, placing the mapfragment inside a panel, and controlling that panel's visibility. But thanks anyway!