<span class="gmail_quote"></span>Thanks for the quick reply.<br><div><br>I would rather do it properly and use events. I couldn&#39;t anything in API docs or examples. I had a look in feature-select and feature-select-popup.<br>
<br>Would you be able to point me to the right place?<br><br>I have tried using control.clickFeature(feature). It works when I call this in Firebug console, but when called from a link (onclick), it gives me this error:<br>
<br><span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch"><div class="errorTitle">this.multipleKey has no properties</div><div class="errorSourceBox errorSource-exec"><img src="chrome://firebug/content/blank.gif" title="Break on this error" class="errorBreak"><span class="errorSource">this.select(feature);}}},multipleSelect:function(){return this.multiple||this.ha...<br>
line 815<br><br>I have posted this in dev<br><br>Xin<br></span></div></span><span class="sg"><br>ps. Sorry to have emailed you direct before.<br><br></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span class="e" id="q_118a4feb5fca1db3_2"><br><br><br><br><div><span class="gmail_quote">On 12/03/2008, <b class="gmail_sendername">Eric Lemoine</b> &lt;<a href="mailto:eric.c2c@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">eric.c2c@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Xin, onSelect is a simple callback func called when a feature is<br> selected, it&#39;s not called as part of OL event framework. To call<br> manually you can do ctrl.onSelect(feature). On a side note, note that<br> trunk now has real events triggered when features are selected. See<br>

 API doc and examples in trunk. Cheers,<br> <br> 2008/3/12, Xin &lt;<a href="mailto:xin@zenpow.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xin@zenpow.com</a>&gt;:<br> <br>&gt; Hi,<br> &gt;<br>
 &gt; I have an KML layer which when a feature is clicked, a pop up opens. This is<br>
 &gt; working now. Thanks!<br> &gt;<br> &gt; selectControl = new OpenLayers.Control.SelectFeature( kmlLayer,<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ onSelect: onFeatureSelect,<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onUnselect: onFeatureUnselect<br>

 &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });<br> &gt;<br> &gt; I would like to trigger the onSelect &#39;event&#39; (is it an event?) manually. I<br> &gt; tried doing the following with map.events.triggerEvent without success.<br>

 &gt;<br> &gt; map.events.triggerEvent(&#39;clickevent&#39;, kmlLayer.features[0])<br> &gt;<br> &gt; Can anyone help at all?<br> &gt;<br> &gt; Xin<br> &gt;<br> </blockquote></div><br>
</span></div></blockquote></div><br>