<div dir="ltr">Thanks Xavier,<div><br></div><div>Good to see you here too !<br><div><br></div><div style>I just wanted to know if it was possible... I have the answer now :-)</div><div style><br></div><div style>Have a nice day !</div>
</div></div><div class="gmail_extra"><br clear="all"><div>  -<span style="font-size:13px;line-height:19px;font-family:sans-serif">φ</span>ol d.-</div>
<br><br><div class="gmail_quote">On Mon, Mar 18, 2013 at 7:22 PM, Xavier Mamano (jorix) <span dir="ltr"><<a href="mailto:xavier.mamano@gmail.com" target="_blank">xavier.mamano@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Pol,<br>
<br>
Don't use option "features" at `vlayer` creation, is not supported and is<br>
ignored.<br>
<br>
Use:<br>
 vlayer.addFeatures(format.read(kml));<br>
<br>
Regards,<br>
<br>
Xavier Mamano<br>
<br>
<br>
Pol D. wrote<br>
<div class="im">> Hello,<br>
><br>
> I registered to this mailing list to get help.<br>
><br>
> I'm trying to create a map with a vector layer, but I want to add the<br>
> features in the options array passed to the<br>
</div>> *OpenLayers.Layer.Vector()*class.<br>
<div class="im">><br>
> See this example: <a href="http://jsbin.com/ecuwes/14/edit" target="_blank">http://jsbin.com/ecuwes/14/edit</a><br>
><br>
> No marker is displayed, any help on this ?<br>
><br>
> Thanks.<br>
><br>
>   -φol d.-<br>
><br>
</div>> _______________________________________________<br>
> Users mailing list<br>
<br>
> Users@.osgeo<br>
<br>
> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Adding-features-before-layer-creation-tp5041130p5041163.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Adding-features-before-layer-creation-tp5041130p5041163.html</a><br>

Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div><br></div>