hi i have this example.. but cant see the 2 lines with the 2 colores<div><br></div><div>if I comment the red part can see the green.. and reverse. commenting green can see the red line.. BUT.. BOTH!! . nothing show </div><div>

no red.. and no green either</div><div><br></div><div><br clear="all"><div><div>&lt;html&gt;&lt;body&gt;</div><div>  &lt;div id=&quot;mapdiv&quot;&gt;&lt;/div&gt;</div><div>  &lt;script src=&quot;./OpenLayers/OpenLayers.js&quot;&gt;&lt;/script&gt;</div>

<div>  &lt;script&gt;</div><div>    map = new OpenLayers.Map(&quot;mapdiv&quot;);</div><div>    map.addLayer(new OpenLayers.Layer.OSM());</div><div>    var lonLat = new OpenLayers.LonLat( -66.202700, 31.275800 )</div><div>

         .transform(</div><div>            new OpenLayers.Projection(&quot;EPSG:4326&quot;),</div><div>            map.getProjectionObject()</div><div>            );</div><div>    var zoom = 6;</div><div>    var player=new OpenLayers.Layer.Vector(&quot;Player&quot;,</div>

<div>    {</div><div>    styleMap: new OpenLayers.StyleMap({</div><div>         &quot;default&quot;: {</div><div>         externalGraphic: &quot;./images/airplane.gif&quot;,</div><div>         graphicWidth: 28,</div><div>

         graphicHeight: 28,</div><div>         graphicYOffset: 0,</div><div>         rotation: &quot;${angle}&quot;,</div><div>         fillOpacity: &quot;${opacity}&quot;</div><div>         }</div><div>     })</div><div>

 });</div><div>    var vectorLayer = new OpenLayers.Layer.Vector(&quot;Vector Layer&quot;);</div><div>    var style_green =</div><div>     {</div><div>      strokeColor: &quot;#00FF00&quot;,</div><div>      strokeOpacity: 0.7,</div>

<div>      strokeWidth: 2</div><div>     };</div><div>    </div><div>    var style_red =</div><div>     {</div><div>      strokeColor: &quot;#FF0000&quot;,</div><div>      strokeOpacity: 0.7,</div><div>      strokeWidth: 2</div>

<div>     };</div><div><br></div><div><br></div><div>    var line_orig = [];</div><div>    var point_orig = new OpenLayers.Geometry.Point(-3.560945, 40.472225);</div><div>    var point_plane = new OpenLayers.Geometry.Point(-66.202700, 31.275800);</div>

<div>    </div><div>    var line_dest = [];</div><div>    var point_plane = new OpenLayers.Geometry.Point(-66.202700, 31.275800);</div><div>    var point_dest = new OpenLayers.Geometry.Point(-82.409164, 22.988609);</div>
<div>
<br></div><div>    line_orig.push(point_orig);</div><div>    line_orig.push(point_plane);</div><div>    var lineString_orig = new OpenLayers.Geometry.LineString(line_orig);</div><div><br></div><div>    line_dest.push(point_plane);</div>

<div>    line_dest.push(point_dest);</div><div>    var lineString_dest = new OpenLayers.Geometry.LineString(line_dest);</div><div>    </div><div>    lineString_orig.transform(new OpenLayers.Projection(&quot;EPSG:4326&quot;), map.getProjectionObject()); </div>

<div>    lineString_dest.transform(new OpenLayers.Projection(&quot;EPSG:4326&quot;), map.getProjectionObject()); </div><div>    var lineFeature_green = new OpenLayers.Feature.Vector(lineString_orig, null, style_green);</div>

<div>    var lineFeature_red = new OpenLayers.Feature.Vector(lineString_dest, null, style_red);</div><div>    </div><div>    vectorLayer.addFeatures([lineFeature_green, lineFeature_red]);</div><div>    </div><div>    map.addLayer(vectorLayer);</div>

<div><br></div><div>    var feature=new OpenLayers.Feature.Vector(</div><div>    new OpenLayers.Geometry.Point( lonLat.lon, lonLat.lat), {&quot;angle&quot;: 242, opacity: 100});</div><div>    player.addFeatures([feature]);</div>

<div>    map.addLayer(player);</div><div><br></div><div>    </div><div>   map.setCenter (lonLat, zoom);</div><div>  &lt;/script&gt;</div><div>&lt;/body&gt;&lt;/html&gt;</div></div><div><br></div>-- <br><font color="#888888"><font color="#888888">Antonio Pe</font><span><font color="#888888">ñ</font></span><font color="#888888">a</font><span></span><br>

<font color="#888888">Secure email with PGP 0x8B021001 available at <a href="http://pgp.mit.edu" target="_blank">http://pgp.mit.edu</a><br></font></font><font color="#888888">
<font color="#888888">Fingerprint: 74E6 2974 B090 366D CE71  7BB2 6476 FA09 8B02 1001</font></font><br>
</div>