• Getting Started
  • Components
    • Barcodes
    • Buttons
    • Chartsupdated
    • Conversational UIupdated
    • Data Query
    • Date Inputsupdated
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Filter
    • Gantt
    • Gauges
    • Gridupdated
    • Icons
    • Indicators
    • Inputsupdated
    • Labels
    • Layout
    • ListBox
    • ListView
    • Map
    • Menus
    • Navigation
    • Notification
    • Pager
    • PDF Export
    • PDFViewer
    • PivotGridupdated
    • Popup
    • ProgressBars
    • Ripple
    • Schedulerupdated
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • ToolBar
    • Tooltips
    • TreeList
    • TreeView
    • Typography
    • Uploads
    • Utilities
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Sample Applications
  • FAQ
  • Troubleshooting
  • Updates
  • Changelogs
New to Kendo UI for Angular? Start a free 30-day trial

Extent

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

NameTypeDefaultDescription

nw

Location

The North West extreme location.

se

Location

The South East extreme location.

Constructors

Extent

(nw: Location | number[] | [number, number], se: Location | number[] | [number, number])

Creates a new Extent.

Parameters

nw

Location | number[] | [number, number]

The North West extreme location.
se

Location | number[] | [number, number]

The South East extreme location.

Methods

center

Returns the center of the extent.

Returns

Location

The extent center location.

contains

Tests if a location is contained within the extent.

Parameters

location

Location

The location to test for.

Returns

boolean

true if the extent contains the location, false otherwise.

containsAny

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

Parameters

locations

Location[]

An array of locations to test for.

Returns

boolean

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

edges

Returns the four extreme locations of the extent.

Returns

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

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

include

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

Parameters

location

Location

The location to include in the extent.

includeAll

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

Parameters

locations

any

The locations to include in the extent.

overlaps

Tests if the given extent overlaps with this instance.

Parameters

extent

Extent

The extent to test with.

Returns

boolean

true if the extents overlap, false otherwise.

toArray

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

Returns

[Location, Location, Location, Location]

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