Hi, I think it would be a nice idea to add the viewBox attribute to the generated svg file because the tag is missing viewBox, height and width attributes (at least for the World map, which I believe could be the most used). A use case example is when rendering a HTML file with WeasyPrint to PDF that contains a svg from this package it shows blank, but modifying _to_svg function to include an arbitrary viewBox = "0 0 x y" it shows properly.
Maybe you could detect the dimensions of the base svg by checking its properties and then set up a default viewBox and/or default height and width attributes.
Btw, congrats for the amazing repo, it works pretty cool :)
Hi, I think it would be a nice idea to add the
viewBoxattribute to the generated svg file because the tag is missingviewBox,heightandwidthattributes (at least for the World map, which I believe could be the most used). A use case example is when rendering a HTML file with WeasyPrint to PDF that contains a svg from this package it shows blank, but modifying_to_svgfunction to include an arbitraryviewBox = "0 0 x y"it shows properly.Maybe you could detect the dimensions of the base svg by checking its properties and then set up a default viewBox and/or default
heightandwidthattributes.Btw, congrats for the amazing repo, it works pretty cool :)