[OpenLayers-Dev] Hover over point - Display name

lcp-2 lcpsignup at gmail.com
Mon Aug 9 18:34:17 EDT 2010


I am also trying to get hover to work for WMSGetFeatureInfo.

I have hover working but popups do not disappear as new ones are created and
empty popups appear where there are no features.

How do I get popups to appear one at a time and only ver features with
hover? Below is the code I am using for GetFeatureInfo:

  //Click on visible features for popup info
var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({
            url: 'http://spatialserver.net:8080/geoserver-nijel/wms',
	    queryVisible: true,
	    //hover: true,
	    layers: [mix_market_grossloan, mdgwatsanpipe_dwtpipe,
mdgwatsanpipe_dwtwoac, mdgwatsanpipe_sntwoac, hunger_uw, poverty_last,
countries, wo_fis, wo_partnerorgs, wo_programs_inactive, wo_programs_active,
wo_programs_featured],
            eventListeners: {
                getfeatureinfo: function(event) {
                    map.addPopup(new OpenLayers.Popup.FramedCloud(
                        null, 
                        map.getLonLatFromPixel(event.xy),
                        null,
                        event.text,
                        null,
                        true
                    ));
                }
           }
        });

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Hover-over-point-Display-name-tp4897211p5390945.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.



More information about the Dev mailing list