Skip to content

Function: pointInGeometry() ​

pointInGeometry(pt, geometry): boolean

Defined in: selection.ts:370

Whether a point is inside a GeoJSON Polygon, MultiPolygon, or GeometryCollection containing them. Points in a hole are outside, but points on any ring (including a hole boundary) are inside (ST_Covers). Other geometries contain nothing.

Parameters ​

pt ​

LonLat

geometry ​

Geometry | null | undefined

Returns ​

boolean

Released under the MIT License.