You can do something like
layers = map.layers;
j=0;
for(i=0;i<layers.length;i++)
{
var x = new OpenLayers.Format.XML();
if (layers[i].renderer)
contents[j] = x.write(layers[i].renderer.rendererRoot);
j++;
}
the content of all SVG renderer will be in the contents Table
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Fwd-How-to-get-SVG-script-in-openlayers-tp4783096p5324396.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev