New to Kendo UI for AngularStart a free 30-day trial

Extent

Class

Represents a geographic region defined by two extreme locations (North West and South East).

Definition

Package:@progress/kendo-angular-map

Methods

Returns the center of the extent.

Returns:

Location

The extent center location.

Tests if a location is contained within the extent.

Parameters:locationLocation

The location to test for.

Returns:

boolean

true if the extent contains the location, false otherwise.

Tests if any of the locations is contained within the extent.

Parameters:locationsLocation[]

An array of locations to test for.

Returns:

boolean

true if the extent contains any of the locations, false otherwise.

Returns the four extreme locations of the extent.

Returns:

{ nw: Location; ne: Location; se: Location; sw: Location }

An object with nw, ne, se and sw locations.

Grows the extent, if required, to contain the specified location.

Parameters:locationLocation

The location to include in the extent.

Grows the extent, if required, to contain all specified locations.

Parameters:locationsany

The locations to include in the extent.

Tests if the given extent overlaps with this instance.

Parameters:extentExtent

The extent to test with.

Returns:

boolean

true if the extents overlap, false otherwise.

Returns the four extreme locations of the extent as an array.

Returns:

[Location, Location, Location, Location]

An array with [NW, NE, SE, SW] locations.

Properties

The North West extreme location.

The South East extreme location.