leaflet wms get featureinfo iterator

المشرف العام

Administrator
طاقم الإدارة
I have got wms layers I am serving up and would like to get the get featureinfo of each layer. I found a method to get the get featureinfo of all layer using


I thought I could implement
map.eachLayer(function (layer) { layer.bindPopup('Hello'); });

and substitute the layer.bindPopup with the getfeatureinfo and substitute the name of layers with layer. But each time I do that I get error layer does not exist.



أكثر...
 
أعلى