[OpenLayers-Users] adding feature to vectorlayer from wkt
karsten vennemann
karsten at terragis.net
Fri Sep 18 02:27:39 EDT 2009
I am trying to add line features to a vector feature layer in my map (projection is EPSG:102003, as are the coordinates of the wkt below)
vectorlayer = new OpenLayers.Layer.Vector("Vector Layer");
map.addLayer(vectorlayer);
var thestreetgeom = new OpenLayers.Geometry.fromWKT("LINESTRING((-1930473.64430529 1513488.44352758, -1646969.91778704 1155135.05969326))", { style: "default" });
vectorlayer.addFeatures(thestreetgeom);
I do not get any error but nothing shows on my map. Could this still be a projection problem or am I missing something else ?
Karsten
Terra GIS LTD
Seattle, USA
<http://www.terragis.net/> www.terragis.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090917/288925af/attachment.html
More information about the Users
mailing list