Hey Dave, 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.
Best regards, Bart Bart van den Eijnden Front End Software Engineer | Boundless <http://boundlessgeo.com/> bart...@boundlessgeo.com <mailto:bart...@boundlessgeo.com> 1-877-673-6436 <tel:917-460-7207> @boundlessgeo <http://twitter.com/boundlessgeo/> <http://boundlessgeo.com/> > On 26 Jun 2015, at 01:15, Dave Potts <dave.po...@pinan.co.uk> wrote: > > If I define a general purpose event listener in openlayers3 which is attached > to two layers by saying something like > > > map.addInteraction(selectClick selectClickOn('select',function(e){ > console.log("Select items" + e.selected.length); > } > > Where > var selectClick= new ol.interaction.Select({ > condition:ol.events.condition.click > }); > > 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? > > Dave > _______________________________________________ > Users mailing list > us...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users