[OpenLayers-Dev] export an openlayer map in SVG

Christopher Schmidt crschmidt at metacarta.com
Thu Aug 7 08:05:13 EDT 2008

On Thu, Aug 07, 2008 at 02:38:33AM -0700, caledo wrote:
> Hi all !
> I'm looking for a way to export an openlayer map in SVG format, in order to
> use it in inkscape.
> At this time, i'm using a local server whith my maps on it, and with
> Tilecache projection.
> And i'me doing some drawing stuff on this map.
> If you have any tips for me, it would be greatly apreciated.
> I'm really new to all those mapping stuff, so please make answers that i
> could understand.
> thanks for all.

If you wan a quick and dirty hack, see the osm-layer.html example, which
uses layer.renderer.root.innerHTML to export an SVG document of the
current map. This will only work in non-IE browsers, though. 

Christopher Schmidt

More information about the Dev mailing list