So I have read and somewhat understood this page:
https://github.com/SHWotever/SimHub/wiki/Javascript-Formula-Engine
But I wanna try to make a toggle fullscreen map; if you press a button, set a boolean to true and set fullscreen map to visible; if you press it again, set the boolean to false and set the fullscreen map to invisible.
Even with that link at the top I have no idea how I would get the input value from that button stored somewhere and read out at the map.Visible property.
Any tips? Something I missed? Is this even possible?Ā
Not a javascript solution, but a widget can do this easily. Add a widget (same width/height as your dashboard) and make sure it has two (sub) screens. Screen 1 = no map at all / or a small map . Screen 2 = the full screen map. In the widget's property list, simply set NextScreenCommand to ActionA. Then map a button to ActionA. No coding needed š
@botmeister That actually sounds like a fairly simple solution and I don't know why I haven't come up with it- I was so fixated on coding it probably xDĀ
Thank you š