Try adding this to your code: select.handlers.feature.stopDown = false; just after you specify your select = new OpenLayers.Control.SelectFeature(layers);
For me, that only fires one event for a click, and corresponds to the top layer. Toby On 7 August 2012 11:30, Simon Johnson <[email protected]> wrote: > Hello list, > > I have a map which has both wms layers and wfs layers. The pop up for > individual layers is working fine and as expected. However, I am having > trouble working out a good approach to pop up behaviour when both wms and > wfs layers are showing. Currently due to separate events firing I get two > pop ups. One with the WMS getfeatureinfo results and one with the pop up > attached to the feature. Ideally I would want the results merged in one > pop-up, but would settle for be able to choose which pop up gets priority > based on layer ordering. > > Can anyone suggest a solution to the problem or provide an example that > deals with a similar situation? > > Thanks > > Simon > > > <http://www.redcross.org.uk/appealweek> > > > > > > This email is for the intended recipient only. It may contain information > that is privileged, confidential and/or subject to copyright. If you are > not the intended > recipient, please delete this email and any attachments and notify * > [email protected]*. You may not present this message or any part > of it to > another party without consent from the sender. > > Although the British Red Cross has taken steps to ensure this email and > any attachments are virus-free, we do not accept any responsibility for > viruses, or for > inaccurate or incomplete information or failure to deliver information. It > is your responsibility to scan the email and any attachments to ensure they > are virus-free. > > The British Red Cross may monitor the content of emails sent or received > by its employees. > > The British Red Cross Society, incorporated by Royal Charter 1908, is a > charity registered in England and Wales (220949) and Scotland (SC037738). > > The red cross emblem is a protective symbol, the use of which is > restricted by international and national law. It may not be reproduced > without prior authorisation. > Click here for more > information<http://www.redcross.org.uk/standard.asp?id=35289> > . > > > > > > > > > This message has been scanned for viruses by BlackSpider > MailControl<http://www.blackspider.com/> > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > >
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
