The only thing that you need to do is get the feature from the layer, you can use its ID, and call the function for this feature, for example:<div><br></div><div><div> var myFeature = myLayer.getFeatureById(myFeatureID);</div>
<div><div> onFeatureSeleccMyFuction(myFeature );</div><div><br></div><div>2012/2/28 Shadin <span dir="ltr"><<a href="mailto:w_ward_W@hotmail.com">w_ward_W@hotmail.com</a>></span></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I have successfully created popups when user click on any feature ( vector &<br>
wfs protocol ).<br>
<br>
also i've added a function to display exact one feature and i need make its<br>
popup open automatically. and of course close when i click on closebox as<br>
usual.<br>
<br>
so.. i can't use: events.on({<br>
"featureselected": onFeatureSelect,<br>
"featureunselected": onFeatureUnselect<br>
});<br>
<br>
any ideas ?<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/popup-open-automatically-tp4530011p4530011.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/popup-open-automatically-tp4530011p4530011.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><br clear="all"><div><br></div>-- <br>Atte,<br><br>Cúmar Cueva, Ing<div>Sistemas Informáticos y Comp.</div><br>
</div></div>