How to remove the "x" (close) symbol from mapbox pop up

Viewed 1338

I have a mapbox marker pop up and i want to remove the "x"(close) symbol as it is over my text. I have searched and couldn't find a solution for this. Thanks for reading.

This is how it looks now. marker_popup

1 Answers

Set closebutton = false

Like:

this.#popup = new Popup({
            closeButton: false,//<----
            closeOnClick: false,
            closeOnMove: true,
            maxWidth: "auto"
        });

Read here

Related