Image as Button ON Map

Hey there! It's me again :sweat_smile:

I'm trying to place a button directly on top of my Map, in the bottom-right corner. The idea is to let the user recenter the map after they’ve dragged it around.

Any tips on how to best position a button over the Map component?

Easiest thing to do is to use a marker, but you would need to "make" a button that says "ReCentre" or whatever. You can then use the marker.click event to recentre the map.

You will need to exclude this marker from the anymarkerclick event handler, by using the notalreadyhandled option.

I decided to go with a simpler solution:
I added a button to the small main menu above the map. The button becomes visible when the map is dragged, and pressing it hides it again.

If you have the latest Android version, you could also put a Map in an AbsoluteArrangement along with a button and position them accordingly.