[OpenLayers-Users] popup close onhover out
Gary Nobles
garynobles at yahoo.com
Fri Jul 1 20:31:24 EDT 2011
In the words of the late Peter Falk "there's just one more thing"
Below is my hover over popup code, any ideas how i get the popups to close
when im not hovering over them?
Also how do I set a limit to how many results are returned? I think I
remember seeing limit:1, somewhere is this right? where does it go?
Many thanks again
Gary
//pop up feature
info = new OpenLayers.Control.WMSGetFeatureInfo({
layerUrls: [('http://domain:8080/geoserver/wms')],
title: 'Identify features by clicking',
layers: [settlements],
queryVisible: "true",
hover: true,
//{'hover':{delay:500}},
eventListeners: {
getfeatureinfo: function(event) {
if(event.text.length <=688){}else{
map.addPopup(new OpenLayers.Popup.FramedCloud(
"chicken",
map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
)
);
}}
}
});
map.addControl(info);
info.activate();
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/popup-close-onhover-out-tp6539826p6539826.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list