Skip to content

spatial-monorepo


spatial-monorepo / editor/src / buildDoorSwingFC

Function: buildDoorSwingFC()

buildDoorSwingFC(features): FeatureCollection`<Polygon>`

Defined in: packages/editor/src/layers/doorSwingLayer.ts:91

Build a GeoJSON FeatureCollection of door-swing Polygons from a set of editor features. Only processes features where:

  • properties.featureType === 'door'
  • geometry.type === 'Point'

Parameters

features

Feature`<Geometry, GeoJsonProperties>`[]

Returns

FeatureCollection`<Polygon>`

Released under commercial licensing.