[OpenLayers-Dev] Fwd: How to get SVG script in openlayers

TomPAP thomas.papin at gmail.com
Thu Jul 22 04:04:22 EDT 2010


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.



More information about the Dev mailing list