Mapbox annotations

I would like to use an onclick event in Plotly to create a text box (not hover text, want it to stick).

What’s the best way to implement this?

A mapbox layer doesn’t seem to provide the functionality I need and annotations in the layout don’t work.

I have a same problem …, how to add text on mapbox using relayout

A mode: 'text' scattermapbox trace is your best bet at the moment.

Is there any way to set a text background color so the text appears in a box? I’ve got it working but the text is just floating by itself.

Don’t see anything about text background in the docs.

not at the moment, unfortunately.