[OpenLayers-Dev] Map with one SVG layer

bartvde at osgis.nl bartvde at osgis.nl
Mon Jun 15 05:02:27 EDT 2009


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
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>





More information about the Dev mailing list