Tag Info

New answers tagged

1

The thing is that the legend of a wms service is actually an image. Having said that how can you display an image inside the tree? what I usually do is either use the Legend Panel, which i can understand is neither handy or neat or use an event to manually get the legend of the layer and display it somewhere more handy. for example: ...


1

Your for loop will not be entered, because you are trying to get the length of mapPanel.map, which will be undefined. Try to get the length of mapPanel.map.layers instead: listeners: { 'select': function(combo, record) { for(var i = 0; i < mapPanel.map.layers.length; i++) { var myLayer = mapPanel.map.layers[i].name; if (myLayer == ...



Top 50 recent answers are included