[OpenLayers-Users] show wfs attributes in popup

Maria Panagou snowdrop at ath.forthnet.gr
Tue Feb 19 16:47:43 EST 2008


I've managed to overcome my problem, it was some extra unneeded code that
caused it. THank you for your response. I have another small question for
you. Is it possible to have 2 different hover events each one for a
different feature? E.g have this select control for layer 'quakes_wfs':

selectQuake= new OpenLayers.Control.SelectFeature(quakes_wfs, {
			  hover:true,
			  selectStyle: hoverstyle,
			  callbacks: {'over':feature_info_hover, 'out':feature_info_hide}});

and the following text layer with mouseover callbacks:

var volcano = new OpenLayers.Layer.Text("Çöáßóôåéá", {
  				 		 location: "./volcano.txt",
	 			   		  callbacks: { 
 	  		     		  mouseover: volcano_info_show, 
				   		  mouseout: volcano_info_hide
 	     		    } 
  					} );	

is it possible that the two hover events work simultaneously? I think it
should be because they involve different layers. Currently I've managed to
display only one of the two, the first one. The volcano layer is off. I turn
it on and hover but nothing happens. maybe the select control should be
deactivated when volcanoes are turned on, so that their callback triggers or
the user could select from an input box which layer he/she wants info for. I
really would like it to work for both layers though. 

You can check out the code in:

http://gaia.dbnet.ece.ntua.gr/mpanagou/ol_start_test.htm
http://gaia.dbnet.ece.ntua.gr/mpanagou/ol_start_test.htm 




Eric Lemoine-3 wrote:
> 
> 
> I've never experienced this problem. On what browser do you see it?
> Are you able to reproduce it with OpenLayers' select feature example
> <http://openlayers.org/dev/examples/select-feature.html> (draw point
> -> select feature -> hover to select features)?
> 
> Cheers,
> --
> Eric
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://www.nabble.com/show-wfs-attributes-in-popup-tp15540822p15571501.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list