Skip to content

Function: isVectorFeatureCollection() ​

isVectorFeatureCollection(collection): collection is FeatureCollection<Geometry, GeoJsonProperties>

Defined in: autk-db/src/interfaces.ts:270

Narrows a getLayer() result to a vector FeatureCollection with non-null geometries.

Compact raster layers return geometry: null and evaluate to false.

Parameters ​

collection ​

FeatureCollection<Geometry | null, GeoJsonProperties>

Returns ​

collection is FeatureCollection<Geometry, GeoJsonProperties>

Released under the MIT License.