<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=218441517-05092008><FONT face=Arial
color=#0000ff size=2>try to add the layer to the map and then add the
features.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial><SPAN
class=828413216-05092008>
</SPAN> map.addLayer(vectorLayer);</FONT></FONT></DIV>
<DIV><FONT face=Arial
size=2>
vectorLayer.addFeatures([lineFeature]);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=218441517-05092008><FONT face=Arial size=2>Arnd
Wippermann</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>Kenny
France<BR><B>Gesendet:</B> Freitag, 5. September 2008 18:34<BR><B>An:</B>
Users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users]
Line<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=813051814-09072002><FONT face=Arial size=2><SPAN
class=828413216-05092008>could somebody Pleaase have a look at the following and
tell me why its not drawing a line?</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=813051814-09072002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=813051814-09072002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=813051814-09072002><FONT face=Arial size=2> var
style_green =
{<BR>
strokeColor:
"#00FF00",<BR>
strokeOpacity:
1,<BR>
strokeWidth:
3,<BR>
pointRadius:
6,<BR>
pointerEvents:
"visiblePainted"<BR>
};<BR>
<BR> var
vectorLayer = new
OpenLayers.Layer.Vector("Line");<BR>
<BR> // create
a line feature from a list of
points<BR> var
pointList =
[];<BR> var
newPoint;<BR>
newPoint = new
OpenLayers.Geometry.Point(-26.123456,26.123456);<BR>
pointList.push(newPoint);<BR>
newPoint = new
OpenLayers.Geometry.Point(-27.123456,26.123456);<BR>
pointList.push(newPoint);</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><SPAN
class=813051814-09072002>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><BR><FONT face=Arial
size=2>
var lineFeature = new
OpenLayers.Feature.Vector(<BR>
new
OpenLayers.Geometry.LineString(pointList),null,style_green);<BR>
<BR>
vectorLayer.addFeatures([lineFeature]);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=828413216-05092008>
</SPAN> map.addLayer(vectorLayer);</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=828413216-05092008><FONT face=Arial
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=828413216-05092008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828413216-05092008><FONT face=Arial
size=2>K-</FONT></SPAN></DIV>
<DIV> </DIV></SPAN>
<DIV> </DIV><BR>
<HR>
I am using the free version of SPAMfighter for home users.<BR>SPAMfighter has
removed 39356 spam emails to date.<BR>Paying users do not have this message in
their emails.<BR>Try <A href="http://www.spamfighter.com/len">SPAMfighter</A>
for free now!<BR></BODY></HTML>