<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hey Dave,<div class=""><br class=""></div><div class="">this list is for OpenLayers 2 only. You can post to stackoverflow with the ‘openlayers-3’ tag or use the ol3-dev Google Group for more developer focussed questions. <br class=""><div apple-content-edited="true" class="">

<div class=""><br class=""></div><div class="">Best regards,</div><div class="">Bart<br clear="all" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><span style="font-family:arial;font-size:small" class="">Bart van den Eijnden</span><br style="font-family:arial;font-size:small" class=""><span style="font-family:arial;font-size:small" class="">Front End Software Engineer | <a href="http://boundlessgeo.com/" class="">Boundless</a></span><br style="font-family:arial;font-size:small" class="">

<a href="mailto:bartvde@boundlessgeo.com" target="_blank" style="color:rgb(17,85,204);font-family:arial;font-size:small" class="">bartvde@boundlessgeo.com</a><br style="font-family:arial;font-size:small" class=""><a href="tel:917-460-7207" value="+19174607207" target="_blank" style="color:rgb(17,85,204);font-family:arial;font-size:small" class="">1-877-673-6436</a><br style="font-family:arial;font-size:small" class="">

<a href="http://twitter.com/boundlessgeo/" style="color:rgb(17,85,204);font-family:arial;font-size:small" class="">@boundlessgeo</a><div class=""><br class=""><div class="gmail_extra" style="font-family:arial;font-size:small"><a href="http://boundlessgeo.com" class=""><img src="http://boundlessgeo.com/wp-content/uploads/files/boundless_sig.png" class=""></a><br class="">

</div></div></div></div>
</div></div>


<br class=""><div><blockquote type="cite" class=""><div class="">On 26 Jun 2015, at 01:15, Dave Potts <<a href="mailto:dave.potts@pinan.co.uk" class="">dave.potts@pinan.co.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">If I define a general purpose event listener in openlayers3 which is attached to two layers by saying something like<br class=""><br class=""><br class="">map.addInteraction(selectClick selectClickOn('select',function(e){<br class="">    console.log("Select items" + e.selected.length);<br class="">}<br class=""><br class="">Where<br class="">var selectClick= new ol.interaction.Select({<br class="">    condition:ol.events.condition.click<br class="">});<br class=""><br class="">When somebody select something the click handler will be invoke and the selected object may be accessed from e.selected, is there way within the event handler of finding out which layer the selected object comes from?<br class=""><br class="">Dave<br class="">_______________________________________________<br class="">Users mailing list<br class=""><a href="mailto:Users@lists.osgeo.org" class="">Users@lists.osgeo.org</a><br class="">http://lists.osgeo.org/mailman/listinfo/openlayers-users<br class=""></div></blockquote></div><br class=""></div></body></html>