onAdd method

void onAdd(
  1. GeoJSONFeature feature
)

The callback function called when a feature is added.

Implementation

void onAdd(GeoJSONFeature feature) {
  _bbox = _addBbox(_bbox!, feature.bbox!);
}