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);
} Raffaele Morelli <raffaele.more...@gmail.com>@lists.osgeo.org Envoyé par : openlayers-users-boun...@lists.osgeo.org 2013-05-10 09:59 A "openlayers-users@lists.osgeo.org" <openlayers-users@lists.osgeo.org> cc Objet Re: [OpenLayers-Users] WFSGetFeatureInfo and OpenLayers.Popup.FramedCloud 2013/5/10 Gery . <gameji...@hotmail.com> try with something else than 0 apologize for the garbage in the code (cut and paste from linux console...) as I said, event.features.length is always zero, so changing to something else doesn't work either event.features.length no matter if I click on a point or not /r_______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users