onEachFeature property

dynamic Function(dynamic feature, Layer layer) onEachFeature

A Function that will be called once for each created Feature, after it has been created and styled. Useful for attaching events and popups to features. The default is to do nothing with the newly created layers.

Implementation

external Function(dynamic feature, Layer layer) get onEachFeature;
void onEachFeature=(dynamic value(dynamic feature, Layer layer))

Implementation

external set onEachFeature(Function(dynamic feature, Layer layer) value);