Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svg modified in inkscape does not render #5

Open
goggelj opened this issue Jan 26, 2016 · 2 comments
Open

svg modified in inkscape does not render #5

goggelj opened this issue Jan 26, 2016 · 2 comments

Comments

@goggelj
Copy link

goggelj commented Jan 26, 2016

Was not able to attach the svgs :(. However, I modified this file using Inkscape (removed files to the north of Scotland):
https://www.amcharts.com/lib/3/maps/svg/unitedKingdomLow.svg

Although I can see the modified image in browser, it does not get rendered via the FSInteractiveMap class.

Any suggestion as to how to fix it are welcome.

Thanks!
(ps. emailed you the svgs - in case you have spare capacity to look into this)

@ArthurGuibert
Copy link
Owner

Hi, I didn't get the attached SVGs in your email. As a general thing it would be better if could host them somewhere and post the link here. Thanks.

@goggelj
Copy link
Author

goggelj commented Feb 8, 2016

Hi Arthur,

Thanks for taking the time to reply to my email.

With a help of a friend, we re-formatted the svgs using Adobe software (as
oppose to Inkscape for Windows).

This seem to have solved the problem. It looks as if Inkscape was only
performing partial changes when deleting a section of the svg resulting in
'missing' areas without changing the actual scale of the image. As a
result, depending on the underlying renderer, the image was either
displaying correctly or transformed into a microscopic dot (browser vs.
ios).

The svgs that I played with were taken from this
https://commons.wikimedia.org/wiki/Category:SVG_maps_of_the_United_Kingdom
wikipedia page.

In particular, UK regions caused many issues when I wanted to remove the
islands north-north east of Scotland as well as mainland Europe from this
https://commons.wikimedia.org/wiki/Category:SVG_maps_of_the_United_Kingdom#/media/File:United_Kingdom_adm_location_map.svg
svg.

Again, all issues led me back to Inkscape - but maybe it was the manner in
which I removed them rather than Inkscape.

If you have the time, and if you figure it out, I'll be grateful if you
could share the cause.

Thanks again for a great piece of code,

Yonni

On 31 January 2016 at 15:17, Arthur [email protected] wrote:

Hi, I didn't get the attached SVGs in your email. As a general thing it
would be better if could host them somewhere and post the link here. Thanks.


Reply to this email directly or view it on GitHub
#5 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants