Hi, OpenLayers currently does not read SVG files (it generates SVG).
You can try to use the following but I am not sure it will work for you: http://trac.openlayers.org/ticket/1808 Best regards, Bart > > Hello, > > im making a map of non existing world (exact coordinates of point doesnt > matter), i drew this map in Inkscape (editor for svg). How can i display > my > svg file with OpenLayers? Its amateur project, it must be simple - just > files, i can not afford to buy account on map servers. > > this is not working, and i don't know why :( > > ************************** > var map = new OpenLayers.Map('map'); > var svg = new OpenLayers.Layer.GML("SVG", > "http://sites.google.com/site/warlock24/storage/WorldMap.svg", { > format: OpenLayers.Format.SVG > }); > map.addLayer(svg); > map.zoomToMaxExtent(); > *************************** > > help :'( > > > -- > View this message in context: > http://n2.nabble.com/Map-with-one-SVG-layer-tp3079214p3079214.html > Sent from the OpenLayers Dev mailing list archive at Nabble.com. > > _______________________________________________ > Dev mailing list > [email protected] > http://openlayers.org/mailman/listinfo/dev > _______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
