2013/5/10 <steve.tout...@inspq.qc.ca>

>
> Maybe try something like this
> if (event.features && event.features.length)
> {
>         //not use
> }
> else
> {
>
>         if( event.text != "\n" && event.text != "")
>                 map.addPopup(new OpenLayers.Popup.FramedCloud("sostegno",
> map.getLonLatFromPixel(event.xy), null, event.text, null, true ), true);
>
> }


I've found what's going on with console.log(event)
response status is always 200 and features array length is always zero

mapserver always returns something because I use templates on wms server
side so the html template is always returned, ie a table with or without
rows, so event.text is never empty.

I should check the html response and do some work there.

Thank you all
/r
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to