visgl / react-map-gl

React friendly API wrapper around MapboxGL JS
http://visgl.github.io/react-map-gl/
Other
7.88k stars 1.35k forks source link

[Feat] Add Marker element property #2097

Closed declanquinn98 closed 1 year ago

declanquinn98 commented 1 year ago

Target Use Case

I'm trying to render simple, custom html at a handful of points on the map. As far as I understand, the Marker's 'element' parameter is designed to do exactly this, but it's one of two properties missing from the react-map-gl Marker component (along with occludedOpacity). Adding these parameters would give devs far greater flexibility for marker customisation.

Proposal

Make the element parameter usable within the Marker component.