将inkscape svg转换为raphael问题

我有一个我在inkscape中创建的svg映射,现在我想将其转换为raphaeljs,以便为Web创建交互式版本,并利用VML回退IE。 svg文件看起来是如何我想要它,我已经使用Ready Set Raphael将其转换为raphael。 但它没有出现。 我认为它可能是我不了解raphael如何工作的。

这是一个jsfiddle,其中包含转换文件的示例提取。

这里是jsfiddle的js代码:

var rsr = Raphael('map', '706.09003', '658.05029');

var field1 = rsr.path("m 2415.5344,-958.9303 c -19.1444,40.60838 -38.5008,83.5093 -36.2303,129.52066 0.062,13.03202 -0.1751,26.05929 -0.7125,39.08058 30.4076,-0.2234 61.4445,-0.18366 91.4597,-0.57116 -7.7541,-8.69731 -5.9123,-28.03507 7.1245,-30.48066 9.3941,1.85117 13.8856,-10.36777 13.83,-17.76263 -1.3423,-13.91414 9.2674,-27.08769 23.0002,-28.84828 3.9736,-3.61429 18.9733,-6.90909 14.4152,-11.53796 -36.5544,-28.25705 -73.9065,-55.42458 -111.5304,-82.22538 l -0.6785,1.41294 -0.6779,1.41189 z").attr({class: 'field',id: 'field1',fill: '#000000',"fill-opacity": '1',"fill-rule": 'evenodd',stroke: 'none','stroke-width':'1','stroke-opacity':'1',display: 'inline'}).transform("t-885.26624,1081.9108").data('id', 'field1');

实际的地图是由更多的元素组成的,但我想我是否可以为一个元素工作,我可以推断!

任何帮助/指针非常感谢。

链接地址: http://www.djcxy.com/p/56947.html

上一篇: Converting inkscape svg to raphael problems

下一篇: Loading and modifying svg within Inkscape plugin