How to add an information box, or an html layer #5897
-
I'm working on a project that has icons on a map. One of the requirements is that each of the icons has an information box (text, icons, etc) placed right above it. It's almost like an always-on tooltip. The problem is that I can't find any layers that do this. Can someone advise? I need for it to be persistent (ie, not onHover or onClick) Example: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You can use a react-map-gl Marker. |
Beta Was this translation helpful? Give feedback.
-
There also some deck.gl compatible HTML overlays in https://nebula.gl that may be of interest. |
Beta Was this translation helpful? Give feedback.
-
@Pessimistress , Markers seemed to solve my issue however I can not click on the href inside my marker box. I looks to be hidden behind the canvas. Playing around with z-index works, but removes the deck layers. Any solution to this? |
Beta Was this translation helpful? Give feedback.
You can use a react-map-gl Marker.