getMapAreas() demo project is done, share code UPS33MND51
In it, you define areas on the map where layers are to be turned into popups:
https://x.com/manuel_moos/status/1726301930375516509?s=20
And then these bits can be "walked around" in the game:
https://x.com/manuel_moos/status/1726302625375859071?s=20
(I'm working on getting the tags right, only a question of a couple of years!)
It is not the most memory efficient way to go about planting a lot of identical trees, mind. If you have a managable set of possible things to populate your popup sprites with, use the BATS code, generalized. Easier, too.