• Resolved myrdin

    (@myrdin)


    Hello, I would like to display an interactive map on my website. I found some svg maps here https://www.amcharts.com/svg-maps/ but i can’t upload it (http error) I tried other svg files and it worked. Is there something to change in the map’s file?
    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Benbodhi

    (@benbodhi)

    Hi there,

    Indeed, you will need to remove the first line:
    <?xml version="1.0" encoding="utf-8"?>

    Then they will upload fine.

    Plugin Author Benbodhi

    (@benbodhi)

    I probably should have been a little clearer.
    SVG files are actually XML code, and for some reason declaring this tag at the top of a file can cause issues when uploading.
    I have seen this before and personally remove everything outside of the <svg> tag, both to avoid this and for a neater file.

    Additionally, I run my files through something called SVG Cleaner which you can find here:
    https://github.com/RazrFalcon/svgcleaner-gui/releases

    Thread Starter myrdin

    (@myrdin)

    Thank you for answering and for the explanations. I removed everything around the <svg> tag but i still got the error. I also tried the svgcleaner.

    • This reply was modified 8 years, 8 months ago by myrdin.
    Plugin Author Benbodhi

    (@benbodhi)

    You only need to remove the first line in the files I tested from that site:
    <?xml version="1.0" encoding="utf-8"?>

    Plugin Author Benbodhi

    (@benbodhi)

    How did you go?
    I managed to replicate exactly what you described using the Italy maps, I then opened the SVG files in my code editor and removed the first line as mentioned, then both files uploaded fine.

    I hope you got it sorted.

    Thread Starter myrdin

    (@myrdin)

    It works thanks a lot for your help.

    Plugin Author Benbodhi

    (@benbodhi)

    Great news! Thanks for letting me know 😁

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Uploading interactive map’ is closed to new replies.