Jump to content
andym

SVG import - paths with links not imported

Recommended Posts

Hi

 

I want to build an svg graphic that I can use like an image map. So I wanted to make some of the paths clickable links eg:

<a xlink:href="" >
    <path id="campania" d="M564.55 581.71l-2.24-0.73 0.82-3.38 -0.66-3.4 -5.95-10.98 -3.58-2.48 -0.52-3.53 -2.05-3.73 -7.48-8.95 -2.91-2.67 4.28-1.26 1.04-2.15 2.1-0.94 1.53-1.42 0.83-7.98 -1.12-3.07 2.53-0.84 3.17-2.61 1.44-0.48 1.99 1.28 3.14 5.2 2.38 0.72 3.43 0.04 0.7-0.8 -0.28-2.23 -1.93-2.49 2.81-3.92 3.07 0.38 4.41-0.37 3.6 0.97 4.39 2.42 7.89 2.82 2.16 0.26 2.65 2.95 4.5 0.1 2.51 1.73 5.46-2.99 6.68-0.61 1.48-1.15 0.97-1.98 3.54 1.71 7.59-2.35 5.01-2.66 3.63 1.54 1.94 2.26 1.77 0.99 0.33 2.89 -2.66 2.96 0.77 2.86 3.95 2 1.51 3.14 3.12-1.15 4.35 2.04 1.41 1.84 -1.59 1 0.45 1.97 -3.61 3.52 0.1 1.61 3.98 2.33 2.03 2.2 7.78 0.58 1.74-0.73 3.67 2.34 7.63 2.13 1.33 3.57 -3.02 6.78 -4.74 2.69 -7.61 0.25 -1.02 2.45 0.37 2.85 -1.5 2.41 1.7 1.44 0.42 5.46 1.01 2.24 3.83 3.6 3.82 1.47 -0.2 1.14 -2.58 2.27 -0.31 1.9 0.92 0.79 2.53 0.77 1.9 1.79 1.62 3.9 -0.11 3.2 1.08 1.39 1.92 1.2 1.21 2.17 2.35 0.92 2.8 2.79 2.24 0.42 0.83 0.65 1.12 5.37 5.2 4.49 0.23 1.87 -0.94 1.97 -4.08 2.74 -1.99 2.12 -0.22 3.22 -3.31 4.55 0.15 0.93 0.89 0.61 -0.9 1 -0.9-0.7 -0.9-1.89 -0.98 0.38 -5.76-0.38 -2.03 0.72 -6.38 5.85 -1.31 0.39 -1.99-0.27 -4.72-2.77 -3.71 0.41 1.32-1.44 -1.25-2.42 -2.33-2.41 -3.29-1.7 -4.69-4.46 -1.4-0.57 -4.77 0.53 -6.55-5.49 -3.53-0.91 -0.24-1.12 1.77-2.26 0.62-2.06 -0.5-2.24 2.23-0.93 1.25-1.32 0.85-3.52 -1.07-3.39 -6.58-12.67 -2.12-3.13 -3.98-4.16 -2.22-1.58 -2.49-0.6 -2.53 0.93 -2.16 1.55 -5.78 0.28 -3.22 2.52 -1.87 0.34 -4.58-1.64 -4.91 1.56 -5.74 3.7 -0.58-0.76 -0.12-1.65 0.63-1.47 3.61-1.07 0.67-1.32 5.69-4.34 0.78-1.16 -0.36-1.94 -1.11-1.45 -2.81-1.74 -2.58-0.65 -7.46-6.24 -5.48 0.68 -1.68 2.7 -1.29 0.07 -5.27-2.59 -2.39-0.17 -0.78 1.24 0.4 2.62 -0.05-0.02ZM555.47 588.61l-0.92 0.79 -1.86-0.18 -2.16 0.85 -2.68-1.55 1.35-2.53 -0.2-1.16 0.9 0 5.79 2.21 -0.23 1.58 0.01-0.01Z" class="s1"/></a> 

Only AFD won't import them (it will import the paths that I haven't tried to make clickable). The graphic works OK in Safari and I tried running it through the w3c validator and it seems to validate OK (more or less).

 

Thanks. (I hope it doesn't seem like I'm always complaining, but I'm assuming that you want to know about issues so you can make AFD even better than it already is).

 

 

 

Share this post


Link to post
Share on other sites

Hi Andy,

 

Our importer really only works with graphical elements at present, whereas the links are attributes so this is why they don't appear in the document. There's no reason I can't add this and our document objects will happily support metadata which I can squirrel the link away into, but some of the problem comes from the question of how you go about editing it when it's in Designer, or if you don't edit it, how you know it's there? 

 

If you have any ideas then I'm happy to listen :)

 

(and yes, I definitely want to know about issues to make the program better and really appreciate you taking the time to tell us!) :)

 

Thanks

Matt

Share this post


Link to post
Share on other sites

Hi Matt

 

Thanks for the speedy reply. Sorry if my post wasn't clear: I wasn't looking to edit the links in AFD. What I wanted to do with this graphic, was resize it and then re-export it, and finish editing the links in a text editor. So for me the ideal would be for AFD simply to leave any extra stuff as it is.

 

Maybe sometime in the future it might be possible to do everything in AFD (I'm not saying it *should* do) but in the meantime I'm happy if I can easily move things back and forth between apps. OK it's probably better to avoid unnecessary round-trips, but there are probably always going to be last-minute tweaks that are best made in AFD.

 

Thanks for your time.

Share this post


Link to post
Share on other sites

Thanks Matt. I can see from the forum that there are plenty of other things to do.

 

Oh and I was going to say that AFD did a really good job of cleaning up a file from Inkscape - I imagine that sorting the extra stuff to-keep from the extra stuff not-to-keep isn't easy.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.