routeBounds
The smallest box that holds every line or ring of the features, or null
when they hold no position. Takes the short way across the antimeridian, as
boundsOfPoints does. Safe for a route of any length.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { routeBounds } from "@mapcairn/core";
function routeBounds(features: readonly (RouteLeg | ReachableAreaFeature)[]): Bounds | null;
Parameters
features(readonly (RouteLeg | ReachableAreaFeature)[])
Returns
Bounds | null