[OpenLayers-Users] Popups doubt in example "Feature Info in Popup"

Eric Lemoine eric.lemoine at camptocamp.com
Wed Aug 26 01:11:32 EDT 2009


On Tue, Aug 25, 2009 at 9:17 PM, Marcos Nogueira<nomarcos at gmail.com> wrote:
>
> Hi,
>
> I managed to use GetFeatureInfo perfectly in my application after checking
> the example "Feature Info in Popup".
>
> Every point that I click that has some information to be returned gets it
> returned. It's great.
>
> But the problem is, when I click in a place in the map that has no
> information, I mean, a point from my WMS layer that has no
> information about it in my source, it returns an empty popup.
> That behaviour also happens in the example. If you click in the white area,
> for example, it returns you an empty popup.
>
> The question I have is:
> how do I make for the popup to appear only when there's some information
> being returned ??
>
> I'm using openlayers 2.8

Hi. What example are you basing your code on?

Cheers,
-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list