<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 26/06/15 07:24, Bart van den Eijnden
      wrote:<br>
      Thanks Bart, its not clear from the name of the group.<br>
      <br>
      I will take the issue to stackoverflow<br>
      <br>
      Dave.<br>
    </div>
    <blockquote
      cite="mid:480EDB30-A21E-4468-AB7C-BF81F17946A0@boundlessgeo.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      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 class="" clear="all">
            <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 moz-do-not-send="true"
                    href="http://boundlessgeo.com/" class="">Boundless</a></span><br
                  style="font-family:arial;font-size:small" class="">
                <a moz-do-not-send="true"
                  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 moz-do-not-send="true" 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 moz-do-not-send="true"
                  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
                      moz-do-not-send="true"
                      href="http://boundlessgeo.com" class=""><img
                        moz-do-not-send="true"
                        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
                moz-do-not-send="true"
                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 moz-do-not-send="true"
                href="mailto:Users@lists.osgeo.org" class="">Users@lists.osgeo.org</a><br
                class="">
              <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br
                class="">
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
    </blockquote>
    <br>
  </body>
</html>