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

fix: add missing field performanceMetricsCollection #2146

Closed jaenal-CF closed 1 year ago

jaenal-CF commented 1 year ago

Hello there!

I am working on a project that requires cookie consent policy. I notice that using mapbox, it will always trigger the performance cookies. For mapbox@2 it has a field that could disable the metric collection. Please let me know if I need more work for adding performanceMetricsCollection field

https://docs.mapbox.com/mapbox-gl-js/api/map/ https://www.mapbox.com/legal/cookies

A bunch of performance cookies trigger by mapbox

image
jaenal-CF commented 1 year ago

@Pessimistress @xintongxia please review is there a way for me to pass this props to the mapbox in react-map-gl?

Pessimistress commented 1 year ago

This will be addressed in v7.1.