No clue about what is wrong here? Something to check?<br><br><div class="gmail_quote">2011/12/5 Diego Pasqualin <span dir="ltr">&lt;<a href="mailto:dpasqualin@gmail.com">dpasqualin@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><span>Oh, I forgot to put this part of the code, which is run just after the previous code:</span></div>
<div><span>---------------------------8&lt;-</span><span>------------------------------</span><span>------------------------------</span><span>--------- </span></div>
<div>        entities.layer_office.events.on({</div><div>            &#39;featureselected&#39;: function (e) {onFeatureSelect(e.feature, entity.map, control)},</div><div>            &#39;featureunselected&#39;: function (evt) {onFeatureUnselect(evt.feature, entity.map) }</div>

<div>        });</div><div>... the same for suburbs.suburbs_layer...</div><div><span>---------------------------8&lt;-</span><span>------------------------------</span><span>------------------------------</span><span>--------- </span></div>

<div><span><br></span></div><div><span>So, I create the control with the layers I want, and after that I use the layers.events.on to run something when the a feature is selected.</span></div>
<div><font color="#222222" face="-moz-fixed"><span style="font-size:12px">This is practically the same I saw in some examples. What could be wrong?</span></font></div><div class="HOEnZb"><div class="h5"><br>
<div class="gmail_quote">2011/12/3 emmexx <span dir="ltr">&lt;<a href="mailto:emmexx@tiscalinet.it" target="_blank">emmexx@tiscalinet.it</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Il 12/02/2011 01:45 AM, Diego Pasqualin scrisse:<br>
<div><br>
&gt; Any suggestion about what I might be doing wrong?<br>
<br>
</div>Try using eventListeners instead of OnSelect?<br>
Or layer.events.on().<br>
<br>
Bye<br>
        maxx<br>
</blockquote></div><br>
</div></div></blockquote></div><br>