Close Map Popup

Hi,
Im looking to close a Popup in my perspective Map component when a button is pressed within that popup.
Currently trying to do this with a Message handler, however to no success.
I know my message is able to be sent has i have a label which updates its text.
Just wondering if this is possible, where im going wrong and if there is a better way.

Thanks

image
image

Solved.

Was calling markers instead of marker

2 Likes