parserProjected<T extends ProjectedPoint<num>> method

GeoJsonFactory<T> parserProjected<T extends ProjectedPoint<num>>(
  1. PointFactory<T> point, {
  2. CreateBounds<T>? bounds,
  3. CreateFeature? feature,
})

A GeoJSON factory using point factory to create cartesian points of T.

Use parserGeographic instead of this if points created should be geographic coordinates, or parser if points can be anything.

Use bounds to specify a factory for Bounds objects.

Use feature to define a factory for Feature objects.

Implementation

GeoJsonFactory<T> parserProjected<T extends ProjectedPoint>(
  PointFactory<T> point, {
  CreateBounds<T>? bounds,
  CreateFeature? feature,
}) =>
    GeoJsonFactory<T>(
      pointFactory: point,
      boundsFactory: bounds ?? Bounds.fromCoords,
      featureFactory: feature,
    );