eachLayer method
Iterates over the layers of the group, optionally specifying context of the iterator function.
group.eachLayer(allowInterop((layer) {
layer.bindPopup('Hello');
}));
Implementation
external LayerGroup eachLayer(Function fn);
Iterates over the layers of the group, optionally specifying context of the iterator function.
group.eachLayer(allowInterop((layer) {
layer.bindPopup('Hello');
}));
external LayerGroup eachLayer(Function fn);