<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Ha! No, I didn't. Must be some goofy
formatting thing that Thunderbird thought was a good idea. <br>
Mike<br>
<br>
On 10/9/2012 4:40 PM, miguel wrote:<br>
</div>
<blockquote class=" cite"
id="mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl"
cite="mid:COL104-DS315696F84C0C6F01DF92FBE8F0@phx.gbl" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style>#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl p.MsoNormal,
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl li.MsoNormal,
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl div.MsoNormal { margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman","serif"; color: black; }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl a:link,
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl span.MsoHyperlink { color: blue; text-decoration: underline; }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl a:visited,
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl span.MsoHyperlinkFollowed { color: purple; text-decoration: underline; }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl code { font-family: "Courier New"; }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl pre { margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: "Courier New"; color: black; }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl span.HTMLPreformattedChar { font-family: Consolas; color: black; }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl span.kwd { }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl span.pln { }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl span.pun { }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl span.typ { }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl span.str { }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl span.lit { }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl span.EmailStyle26 { font-family: "Courier New"; color: rgb(31, 73, 125); }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl .MsoChpDefault { font-size: 10pt; }
#mid_COL104_DS315696F84C0C6F01DF92FBE8F0_phx_gbl div.WordSection1 { page: WordSection1; }
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier
New";color:#1F497D">Thanks for replying mike, I will
give this a try. Can I ask why are these line stricken? <o:p></o:p></span></p>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in"><o:p> </o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">var</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> lineFeature </span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">=</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">new</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;
padding:0in">OpenLayers</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Feature</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></s></span><span class="typ"><s><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Vector</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">(</span></s></span><code><s><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">line</span></s></code><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">,</span></s>
</span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></s></span><span class="kwd"><s><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">null</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">,</span></s></span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> style</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">);</span></s></span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p></o:p></span></s></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">lineLayer</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></s></span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">addFeatures</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">([</span></s></span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">li<o:p></o:p></span></s></span></pre>
<p class="MsoNormal"><span class="pln"><s><span
style="font-size:10.5pt;font-family:Consolas;border:none
windowtext 1.0pt;padding:0in">neFeature</span></s></span><span
class="pun"><s><span
style="font-size:10.5pt;font-family:Consolas;border:none
windowtext 1.0pt;padding:0in">]);</span></s></span><span
style="font-size:11.0pt;font-family:"Courier
New";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier
New";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier
New";color:#1F497D">did you mean to do that?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier
New";color:#1F497D">Miguel<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier
New";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier
New";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
Mike Ryan [<a class="moz-txt-link-freetext" href="mailto:m.ryan6000@gmail.com">mailto:m.ryan6000@gmail.com</a>] <br>
<b>Sent:</b> Tuesday, October 09, 2012 4:09 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>;
<a class="moz-txt-link-abbreviated" href="mailto:juanabreu@hotmail.com">juanabreu@hotmail.com</a><br>
<b>Subject:</b> Re: [OpenLayers-Users] KML icons point<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">That example doesn't give you the nuts
and bolts of programmatically creating the line.<br>
<br>
This does: <a moz-do-not-send="true"
href="http://stackoverflow.com/questions/2735944/drawing-a-path-with-a-line-in-openlayers-using-javascript">http://stackoverflow.com/questions/2735944/drawing-a-path-with-a-line-in-openlayers-using-javascript</a><br>
<br>
<br>
<o:p></o:p></p>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">var</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> lineLayer </span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">=</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in;background:#EEEEEE"> </span></span><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">new</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:non
e windowtext 1.0pt;padding:0in">OpenLayers</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Layer</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Vector</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">(</span></span><span class="str"><span style="font-size:10.5pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0in">"Line Layer"</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">);</span></spa
n><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> <o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p> </o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">map</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">addLayer</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">(</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">lineLayer</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">);</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">  
; <o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">var</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> points </span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">=</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> new </span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Array</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">(</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"
><o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">new</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">OpenLayers</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Geometry</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none wi
ndowtext 1.0pt;padding:0in">.</span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Point</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">(</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">lon1</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">,</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> lat1</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">),</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">new</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">OpenLayers</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Geometry</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none wi
ndowtext 1.0pt;padding:0in">.</span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Point</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">(</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">lon2</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">,</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> lat2</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">)</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">);</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p> </o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">var</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> line </span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">=</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">new</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;paddi
ng:0in">OpenLayers</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Geometry</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">LineString</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">(</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">points</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">);</span></span><span class="pln"><span style="fon
t-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p> </o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">var</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> style </span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">=</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">{</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> <o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> strokeColor</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">:</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="str"><span style="font-size:10.5pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0in">'#0000ff'</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">,</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> <o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> strokeOpacity</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">:</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="lit"><span style="font-size:10.5pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0in">0.5</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">,</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> strokeWidth</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">:</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="lit"><span style="font-size:10.5pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0in">5</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">};</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p></o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p> </o:p></span></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">var</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> lineFeature </span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">=</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="kwd"><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">new</span></span><span class="pln"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></span><span class="typ"><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0p
t;padding:0in">OpenLayers</span></span><span class="pun"><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Feature</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></s></span><span class="typ"><s><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Vector</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">(</span></s></span><code><s><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in">line</span></s></code><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">,</span></
s></span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> </span></s></span><span class="kwd"><s><span style="font-size:10.5pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0in">null</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">,</span></s></span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"> style</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">);</span></s></span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><o:p></o:p></span></s></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">lineLayer</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">.</span></s></span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">addFeatures</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">([</span></s></span><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">li<o:p></o:p></span></s></span></pre>
<pre style="line-height:13.5pt;background:#EEEEEE;vertical-align:baseline"><span class="pln"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">neFeature</span></s></span><span class="pun"><s><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">]);</span></s></span><s><span style="font-size:10.5pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0in"><o:p></o:p></span></s></pre>
<p class="MsoNormal"><s><span
style="font-size:10.5pt;color:#2B91AF;border:none
windowtext 1.0pt;padding:0in"><br>
And it wouldn't hurt to have the API at your fingertips
for LineString: <a moz-do-not-send="true"
href="http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Geometry/LineString-js.html">http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Geometry/LineString-js.html</a><br>
<br>
On 10/9/2012 3:48 PM, miguel wrote:<o:p></o:p></span></s></p>
</div>
<blockquote class=" cite" id="Cite_6"
style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Hi <o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Forgive me with the noob question I have successfully using my own custom<o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in">map tiles for doing diagram. The problem I have now encountered is how do I<o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in">draw the lines programmatically. I found this example page<o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in"><a moz-do-not-send="true" href="http://openlayers.org/dev/examples/draw-feature.html">http://openlayers.org/dev/examples/draw-feature.html</a> but looking at the<o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in">source code does not reveal much to me. Does anyone have have an example<o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in">using x and y coordinates or long lattitute on how to draw lines on a map. I<o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in">would greatly appreciated.<o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Miguel<o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in"><o:p><span style="text-decoration:none"> </span></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in">_______________________________________________<o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in">Users mailing list<o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in"><a moz-do-not-send="true" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><o:p></o:p></span></s></pre>
<pre><s><span style="color:#2B91AF;border:none windowtext 1.0pt;padding:0in"><a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><o:p></o:p></span></s></pre>
</blockquote>
<p class="MsoNormal"><span style="border:none windowtext
1.0pt;padding:0in"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
</blockquote>
<br>
</body>
</html>