[OpenLayers-Dev] Projecting a vetorial layer

Damiano Morosi damiano.morosi at gmail.com
Sun Oct 26 06:34:50 EDT 2008


Hi all,

I have added a vectorial layer in my map, starting from a wkt:

----

path = new OpenLayers.Layer.Vector("Percorso", {style: result_style});
map.addLayers([path]);
parser = new OpenLayers.Format.WKT();
var wkt = "<?php echo $path_wkt; ?>";

var path_feat = parser.read(wkt);

path.addFeatures([path_feat]);

----

This works. Now, the wkt comes from an external process in long/lat, and I
need to project it on the map using EPSG:XXXX. How can I accomplish this?
Thank you,

Damiano Morosi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20081026/a4c172d8/attachment.html


More information about the Dev mailing list