Hello,
I’m looking into fitting my chloropleth map in Mapbox.
According to the Mapbox docs, you can pass an array of coordinates to a fitBounds parameter :
- https://docs.mapbox.com/mapbox-gl-js/api/map/#Map#fitBounds
- https://github.com/alex3165/react-mapbox-gl/issues/469
- https://docs.mapbox.com/mapbox-gl-js/api/geography/#lnglatboundslike
However I can not figure out where to pass the option since in plotly React you create a component looking like :
<Plot
data={data}
layout={layout}
config={{mapboxAccessToken: token}}
style={style}
/>
Where do you add the coordinates array in the Plot wrapper as the fitBounds option ? In layout ? config ?
Thank you for your help