expandedBy method

GeoBox expandedBy(
  1. double southMeters,
  2. double westMeters,
  3. double northMeters,
  4. double eastMeters,
)

Creates a GeoBox which is expanded by a fixed distance.

Throws an InstantiationError if it is not possible to create a valid GeoBox with the given arguments.

  • southMeters Distance in the south direction in meters to expand the GeoBox.

  • westMeters Distance in the west direction in meters to expand the GeoBox.

  • northMeters Distance in the north direction in meters to expand the GeoBox.

  • eastMeters Distance in the east direction in meters to expand the GeoBox.

Returns GeoBox. The expanded GeoBox.

Throws InstantiationException. Instantiation error.

Implementation

GeoBox expandedBy(double southMeters, double westMeters, double northMeters, double eastMeters) => $prototype.expandedBy(this, southMeters, westMeters, northMeters, eastMeters);