I would use minScale/maxScale settings on the layers such that only one of them is visible at a time.
Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Aug 7, 2012, at 12:30 PM, 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 > > > > > > 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. > > > > > > > > This message has been scanned for viruses by BlackSpider MailControl > > _______________________________________________ > 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
