[OpenLayers-Users] Approach for pop-ups with wms and wfs layers on same map.

Tobias Reinicke ramotswa at gmail.com
Tue Aug 7 05:29:00 PDT 2012


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 <SJohnson at redcross.org.uk> 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  *
> mailadmin at redcross.org.uk*. 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120807/bcb5eda7/attachment-0001.html>


More information about the Users mailing list