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 <[email protected]>@lists.osgeo.org
Envoyé par : [email protected]
2013-05-10 09:59
A
"[email protected]" <[email protected]>
cc
Objet
Re: [OpenLayers-Users] WFSGetFeatureInfo and OpenLayers.Popup.FramedCloud
2013/5/10 Gery . <[email protected]>
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users