How can I show the popup of a wms layer?

663
0
11-20-2017 08:57 AM
LMNaranjoLM
New Contributor

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]);

0 Kudos
0 Replies