JS API
- Parameters
- Options
- Example
- Methods
- fitToBoundingBox
- getBoundingBox
- getInitialBoundingBox
- getLayers
- getMouseMode
- off
- on
- once
- refresh
- reset
- setMouseMode
- usingLayer
- usingNewLayer
- Events
- Parameters
- Example
- Methods
- addFeature
- addFeatureCollection
- bringForwards
- bufferGeometry
- changeProperties
- clearFilters
- clearFeatures
- clearStyle
- clipByFeatureCollection
- convertToCentroids
- filterByBoundingBox
- filterByFeatureCollection
- filterByNearest
- filterByText
- getFeatureCollection
- hide
- sendBackwards
- show
- style
- update
- usingFeature
isContainedBy
Determines whether a GeoJSON geometry is contained by another GeoJson geometry as a boolean.
Parameters
Name | Required | Description |
---|---|---|
geometry | Yes | Any GeoJSON geometry object. |
container | Yes | Any GeoJSON geometry object. |
Currently Implemented
At present this function is only implemented for the geometry types in the table below.
container
Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | BoundingBox | |
---|---|---|---|---|---|---|---|
geometry | |||||||
Point | - | - | YES(ring) | - | YES | - | YES |
MultiPoint | - | - | - | - | - | - | - |
LineString | - | - | YES(ring) | - | - | - | - |
MultiLineString | - | - | - | - | - | - | - |
Polygon | - | - | - | - | YES | - | - |
MultiPolygon | - | - | - | - | - | - | - |
BoundingBox | - | - | - | - | - | - | - |