AnsweredAssumed Answered

How can I show the popup of a wms layer?

Question asked by lmnaranjo on Nov 20, 2017

Hi,

 

I'm trying to visualize a wms service through wmsLayer. I get to visualize it correctly, but nevertheless I can not enable the popup. Can anybody help me? I leave the fragment of the code where I created the wmslayer and the wmslayerinfo.

 

Thank you!

 

 

 

var layer1 = new WMSLayerInfo({
name: 'Tipos de verano de la clasificación climática de Papadakis',
showPopup: true
});
var resourceInfo = {
extent: new Extent(0, 0, 0, 0, {
wkid: 4326
}),
layerInfos: [layer1,layer2,layer3,layer4,layer5,layer6,layer7,layer8,layer9,layer10,layer11,layer12,layer13,layer14,layer15,layer16,layer17]
};
var wmsLayer = new WMSLayer('http://wms.mapama.es/sig/Agricultura/CaractAgroClimaticas/wms.aspx', {
resourceInfo: resourceInfo,
visibleLayers: ['Tipos de verano de la clasificación climática de Papadakis']
});
map.addLayers([wmsLayer]);

Outcomes