<div>Hi,</div><div>I&#39;m failing when trying to remove a feature selected by its ID:</div><div><br></div><div><br></div><div>...</div><div><br></div><div>var startpoint= new OpenLayers.Feature.Vector(point,null,start_style);</div>
<div><a href="http://startpoint.id">startpoint.id</a>=&quot;hey&quot;;</div><div>mylayer.addFeatures([startpoint]); </div><div>...</div><div>var something=getFeatureById(&quot;hey&quot;); //works</div>mylayer.removeFeatures(mylayer.features[something]); <div>
<br></div><div><br></div><div><br></div><div>Maybe  it&#39;s in general not possible choosing a feature by an associative key ?</div><div>Then how solving this problem in another, elegant way ? (i have a solution for my problem, but it&#39;s definitely not fine or elegant^^)</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div>leaving you kind regards</div><div>mehmet sirin c.</div><div><br></div><div><br></div><div><br></div>