react-simple-maps icon indicating copy to clipboard operation
react-simple-maps copied to clipboard

Projection choice causes performance loss

Open filippoelgorni opened this issue 3 years ago • 0 comments

Hello, I have used react-simple-maps in the past with great results and little pain.

This time I am adapting some older code to a newer version of a site, where a dynamic, zoomable choropleth map is present. It uses a geojson of ~4MB. It seems that whenever I add a projection to the ComposableMap component (I have tried geoTimes, geoMercator from d3-geo-projection) the performances of the map sensibly drop. Is this normal?

Consider that in the earlier code, where the projection was added in the Geography component rather than in ComposableMap, the performances seem to be fine.

filippoelgorni avatar Jan 10 '22 15:01 filippoelgorni