add method

void add(
  1. MapFeature feature
)

Implementation

void add(MapFeature feature) {
  _drawableFeatures.add(DrawableFeature(feature));
  _pointsCount += feature.geometry.pointsCount;

  if (_bounds == null) {
    _bounds = feature.geometry.bounds;
  } else {
    _bounds = _bounds!.expandToInclude(feature.geometry.bounds);
  }
}