Hi, Karsten<br>maybe your layer does not have the correct projection?<br>try<br> var options = {..., projection: "EPSG:<font face="Arial" size="2"><span>102003</span></font>", ... };<br> <font face="Arial" size="2">vectorlayer </font> = new OpenLayers.Layer.Vector("Vector Layer",{layers: 'basic'},options );<br>
<br>regards, michael<br><br><div class="gmail_quote">2009/9/18 karsten vennemann <span dir="ltr"><<a href="mailto:karsten@terragis.net">karsten@terragis.net</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><font face="Arial" size="2"><span>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)</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2">vectorlayer = new OpenLayers.Layer.Vector("Vector
Layer");<br>map.addLayer(vectorlayer);<br>var thestreetgeom = new
OpenLayers.Geometry.fromWKT("LINESTRING((-1930473.64430529 1513488.44352758,
-1646969.91778704<span> </span>1155135.05969326))", {
style: "default" }); <br>
vectorlayer.addFeatures(thestreetgeom);</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><span><font face="Arial" size="2">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 ?</font></span></div>
<div><font size="2"><span style="font-size: 11pt; font-family: Verdana;"><br>Karsten </span></font><font size="1"><span style="font-size: 9pt; font-family: Verdana;"><br></span></font><font color="#003264"><font size="1"><span style="font-size: 9pt; font-family: Verdana;">Terra GIS
LTD<br></span></font></font><font size="1"><span style="font-size: 9pt; font-family: Verdana;"><font color="#003264"><span>Seattle,
</span>USA</font></span></font><font size="1"><span style="font-size: 9pt; font-family: Verdana;"><font color="#003264"> <br></font><a href="http://www.terragis.net/" target="_blank"><font color="#003264">www.terragis.net</font></a></span></font></div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br>