return type | Array ( GeoJSON bounding box ) |
---|---|
syntax | $.geo.include( null | Array bbox ( GeoJSON bounding box ), Array position ( GeoJSON position ) | Array bbox ( GeoJSON bounding box ) ) |
usage |
|
The include method expands a bbox to include either a coordinate or another bbox. The expanded bbox is returned.
If the first argument is null or undefined, the result is a new bbox and will contain the second argument.
For efficency, if the first argument is a valid bbox, it is modified in-place and a reference is returned.
If the second argument is not a coordinate or bbox, this function returns the first argument.
This function is similar to Envelope.expandToInclude in JTS.