Feature.fromRaw constructor

Feature.fromRaw(
  1. Feature feature
)

Creates a Feature from a vt.Feature instance.

Implementation

Feature.fromRaw(vt.Feature feature)
    : this(
        id: feature.id,
        properties: feature.properties
            .map((key, value) => MapEntry(key, _getValue(value))),
        geometries:
            feature.geometries.map((e) => Geometry.fromRaw(e)).toList(),
      );