SVG metadata

View: New views
2 Messages — Rating Filter:   Alert me  

SVG metadata

by florent beauchamp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello ,

CONTEXT :
I'm trying to produce dynamics maps  with SVG and animated them with javascript.
The maps will be  generated by  mapserver and their cairo output plugin

PROBLEM :
I need to associate each and every SVG object (polyline/path) with their id

like this :
 <path d="M 100 100 L 300 100 L 200 300 z"
        fill="red" stroke="blue" stroke-width="3" id="MAP_COUNTRY-FR"/>

Is their a way to do this using the standard cairo API ?

Regards,

Florent BEAUCHAMP
_______________________________________________
cairo mailing list
cairo@...
http://lists.cairographics.org/mailman/listinfo/cairo

Re: SVG metadata

by Emmanuel Pacaud-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Le samedi 07 novembre 2009 à 18:15 +0100, florent beauchamp a écrit :

> CONTEXT :
> I'm trying to produce dynamics maps  with SVG and animated them with javascript.
> The maps will be  generated by  mapserver and their cairo output plugin
>
> PROBLEM :
> I need to associate each and every SVG object (polyline/path) with their id
>
> like this :
>  <path d="M 100 100 L 300 100 L 200 300 z"
>         fill="red" stroke="blue" stroke-width="3" id="MAP_COUNTRY-FR"/>
>
> Is their a way to do this using the standard cairo API ?

It's not possible yet. A possible API would be probably similar to what
was proposed during the link/anchor discussion in the past.

http://lists.cairographics.org/archives/cairo/2008-February/012986.html
http://lists.cairographics.org/archives/cairo/2007-November/012026.html

        Emmanuel.

_______________________________________________
cairo mailing list
cairo@...
http://lists.cairographics.org/mailman/listinfo/cairo