bounds abstract method

void bounds(
  1. Box bounds
)

Writes a bounding box represented by bounds of Box.

Known Box sub classes are ProjBox (projected or cartesian coordinates) and GeoBox (geographic coordinates). Other sub classes are supported too.

An example with 2D coordinates:

   // a bounding box with projected coordinates
   content.box(
      const ProjBox(minX: 10, minY: 10, maxX: 20, maxY: 20));

   // a bounding box with with geographic coordinates
   // (between -20.0 .. 20.0 in longitude, 50.0 .. 60.0 in latitude)
   content.box(
      const GeoBox(west: -20, south: 50, east: 20, north: 60));

Implementation

void bounds(Box bounds);