[OpenLayers-Users] overwrhite the layers of the control "OpenLayers.Control.WMSGetFeatureInfo"

islanis at infomed.sld.cu islanis at infomed.sld.cu
Fri Dec 7 08:50:16 PST 2012


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/


More information about the Users mailing list