i got this , i want to overwrhite the layers of the control "OpenLayers.Control.WMSGetFeatureInfo" cause in this way it always use the layers of the map, and i want to use the layer that i want , no all of them.
//------------------------------------------------------------------------
wmsFeatureInfo = new OpenLayers.Control.WMSGetFeatureInfo({
     autoActivate : true,
     infoFormat : "application/vnd.ogc.gml",
     maxFeatures : 1,
         QUERY_LAYERS:[potencial],
         LAYERS: [potencial],
     eventListeners : {
"getfeatureinfo" : function(e){popupPotencialGenerico(e,"sigfre_potencial_hidrico_Rios","Pot hidrico de río");}
     }
});

map.addControl(wmsFeatureInfo);
wmsFeatureInfo.QUERY_LAYERS=[potencial];
wmsFeatureInfo.LAYERS=[potencial];

map.zoomToMaxExtent();

//------------------------------------------------------------------------
thanks to all

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


--

Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to