carbonplan / maps

interactive multi-dimensional data-driven web maps
https://maps.demo.carbonplan.org
Other
213 stars 18 forks source link

Adding a `<Point />` component #119

Closed Jakidxav closed 3 weeks ago

Jakidxav commented 5 months ago

I noticed that there is a <Fill /> and <Line /> component, but not one for points. From looking at other CarbonPlan repositories, it looks like most point layers are being added into the map.style object on map load. Is there any interest in a standalone <Point /> component?

For what this could look like, I have an initial version here. A couple of notes about this component:

Shane98c commented 3 weeks ago

This is a cool idea but we're inclined to keep the tool as theme-agnostic as possible (no predefined fonts etc.). You should be able to implement what you've done here in your app by using the useMapbox hook.