[OpenLayers-Users] WFSGetFeatureInfo and OpenLayers.Popup.FramedCloud

Jerome A. Wendell jawendell at suddenlink.net
Fri May 10 05:43:41 PDT 2013


Inside your getfeatureinfo request, use a conditional statement testing for
features before the popup is called, such as:

 

                if(event.features.length > 0){

                ..

..

}

 

Hope this helps,

 

Jerome

 

 

From: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Raffaele
Morelli
Sent: Friday, May 10, 2013 8:31 AM
To: openlayers-users at lists.osgeo.org
Subject: [OpenLayers-Users] WFSGetFeatureInfo and
OpenLayers.Popup.FramedCloud

 

Hi,

 

I am juggling with WFS and info popup in
http://openlayers.org/dev/examples/getfeatureinfo-popup.html

 

Everything works fine but the info popup always raises, even when clicking
outside the layers.

How can I prevent this behaviour? (if possible)

 

regards

/r

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130510/ddec9d4c/attachment.html>


More information about the Users mailing list