eachLayer method

LayerGroup eachLayer(
  1. Function fn
)

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