MartinP460 / react-denmark-map

Customizable plug-and-play map of Denmark for visual presentation🗺️
https://react-denmark-map.vercel.app/
MIT License
21 stars 4 forks source link

[V2] Standarize viewbox dimensions #27

Closed MartinP460 closed 9 months ago

MartinP460 commented 9 months ago

⚠️ Important: This issue is part of the version 2.0 release. Make sure to read the v2 contributing guidelines. Checkout from the v2 branch when creating the branch and open a PR towards this branch. ⚠️

Description

The viewbox dimensions for each map are all over the place. Some SVG's have dimensions 3000 x 4500 while others have dimensions 13000 x 15000 (not precise). We need to standardize this, preferably to be 1000 in viewbox width, such that you can apply the viewBox property without having to worry about the viewbox dimensions of the specific map rendition.

Proposed solution

Change the path definitions in the data arrays to account for a viewbox width of 1000 and a corresponding height.