matkoniecz / lunar_assembler

SVG maps from OpenStreetMap data. Available at https://mapsaregreat.com/osm_to_svg_in_browser/
GNU Affero General Public License v3.0
40 stars 5 forks source link

Downloaded SVGs lack style info? #35

Closed TurnrDev closed 3 years ago

TurnrDev commented 3 years ago

This is what I get when I download and then open in a browser: image

matkoniecz commented 3 years ago

Thanks for catching this regression! I see what went wrong.

TurnrDev commented 3 years ago

I'm glad because I had no clue and wouldn't have been much help if you needed more info aha

matkoniecz commented 3 years ago

If you are curious: see that supposed SVG file has div as first line and then <svg>.

That is because I added div with white background to show SVG with white background rather than site background to fix rendering SVGs on site.

But I failed to change what is saved to file, and it started to include spurious DIV.

To fix it properly I likely should set styling properly in CSS, and right now I make some other CSS fixes.