new BoundingRegion(northLatitude, eastLongitude, southLatitude, westLongitude)
Creates a rectangular bounding region, which the latitude and longitude coordinates of the rectangle’s northeast and southwest corners define.
Declaration
constructor(
northLatitude?: number,
eastLongitude?: number,
southLatitude?: number,
westLongitude?: number,
);Parameters
- northLatitude:
The north latitude of the bounding region.
- eastLongitude:
The east longitude of the bounding region.
- southLatitude:
The south latitude of the bounding region.
- westLongitude:
The west longitude of the bounding region.
Discussion
The example below creates a new bounding region by passing the required longitude and latitude coordinates to the constructor:
const region = new mapkit.BoundingRegion(northLatitude, eastLongitude, southLatitude, westLongitude);