map method
Returns a new feature collection with all features mapped using
toFeature
.
Any custom data or properties (other than geometries) are not mapped just copied (by references).
If bounds object is available on this, then it's not recalculated and the returned object has it set null.
Implementation
FeatureCollection<E> map(E Function(E feature) toFeature) {
final mapped = features.map<E>(toFeature).toList(growable: false);
final type = resolveCoordTypeFrom(collection: mapped);
return FeatureCollection<E>._(mapped, type, custom: custom);
}