Constructors
constructor
- new GeoTree(depth: number, maxDepth: number, density: number, geoFrame: GeoBox, geoBounds: GeoBox, geoCenter: GeoPoint, southWest: null | GeoTree, northWest: null | GeoTree, southEast: null | GeoTree, northEast: null | GeoTree, views: readonly GeoView[], size: number): GeoTree
-
Parameters
-
depth: number
-
maxDepth: number
-
density: number
-
-
-
-
southWest: null | GeoTree
-
northWest: null | GeoTree
-
southEast: null | GeoTree
-
northEast: null | GeoTree
-
views: readonly GeoView[]
-
size: number
Properties
Readonly density
density: number
Readonly depth
depth: number
Readonly geoBounds
Readonly geoCenter
Readonly geoFrame
Readonly maxDepth
maxDepth: number
Readonly northEast
Readonly northWest
Readonly size
size: number
Readonly southEast
Readonly southWest
Readonly views
Methods
contains
- contains(bounds: GeoBox): boolean
-
Parameters
Returns boolean
Protected createTree
- createTree(depth: number, maxDepth: number, density: number, geoFrame: GeoBox, geoBounds?: GeoBox, geoCenter?: GeoPoint, southWest?: null | GeoTree, northWest?: null | GeoTree, southEast?: null | GeoTree, northEast?: null | GeoTree, views?: readonly GeoView[], size?: number): GeoTree
-
Parameters
-
depth: number
-
maxDepth: number
-
density: number
-
-
Optional geoBounds: GeoBox
-
Optional geoCenter: GeoPoint
-
Optional southWest: null | GeoTree
-
Optional northWest: null | GeoTree
-
Optional southEast: null | GeoTree
-
Optional northEast: null | GeoTree
-
Optional views: readonly GeoView[]
-
Optional size: number
forEach
- forEach<T>(callback: (view: GeoView) => void | T): undefined | T
- forEach<T, S>(callback: (view: GeoView) => void | T, thisArg: S): undefined | T
-
Type parameters
Parameters
-
callback: (view: GeoView) => void | T
-
-
Parameters
Returns void | T
Returns undefined | T
-
Type parameters
Parameters
-
callback: (view: GeoView) => void | T
-
-
Parameters
Returns void | T
-
thisArg: S
Returns undefined | T
forEachIntersecting
- forEachIntersecting<T>(bounds: GeoBox, callback: (view: GeoView) => void | T): undefined | T
- forEachIntersecting<T, S>(bounds: GeoBox, callback: (view: GeoView) => void | T, thisArg: S): undefined | T
-
Type parameters
Parameters
-
-
callback: (view: GeoView) => void | T
-
-
Parameters
Returns void | T
Returns undefined | T
-
Type parameters
Parameters
-
-
callback: (view: GeoView) => void | T
-
-
Parameters
Returns void | T
-
thisArg: S
Returns undefined | T
forEachNonIntersecting
- forEachNonIntersecting<T>(bounds: GeoBox, callback: (view: GeoView) => void | T): undefined | T
- forEachNonIntersecting<T, S>(bounds: GeoBox, callback: (view: GeoView) => void | T, thisArg: S): undefined | T
-
Type parameters
Parameters
-
-
callback: (view: GeoView) => void | T
-
-
Parameters
Returns void | T
Returns undefined | T
-
Type parameters
Parameters
-
-
callback: (view: GeoView) => void | T
-
-
Parameters
Returns void | T
-
thisArg: S
Returns undefined | T
forEachReverse
- forEachReverse<T>(callback: (view: GeoView) => void | T): undefined | T
- forEachReverse<T, S>(callback: (view: GeoView) => void | T, thisArg: S): undefined | T
-
Type parameters
Parameters
-
callback: (view: GeoView) => void | T
-
-
Parameters
Returns void | T
Returns undefined | T
-
Type parameters
Parameters
-
callback: (view: GeoView) => void | T
-
-
Parameters
Returns void | T
-
thisArg: S
Returns undefined | T
getTree
-
Parameters
has
-
Parameters
Returns boolean
inserted
-
Parameters
intersects
- intersects(bounds: GeoBox): boolean
-
Parameters
Returns boolean
isEmpty
-
Returns boolean
moved
-
Parameters
removed
-
Parameters
Static empty
- empty(geoFrame?: GeoBox, depth?: number, maxDepth?: number, density?: number): GeoTree
-
Parameters
-
Optional geoFrame: GeoBox
-
Optional depth: number
-
Optional maxDepth: number
-
Optional density: number