Skip to content

GeoJSONFeatureDiff

GeoJSONFeatureDiff = object

Defined in: src/source/geojson_source_diff.ts:31

A geojson feature diff object

Properties

addOrUpdateProperties?

optional addOrUpdateProperties: object[]

Defined in: src/source/geojson_source_diff.ts:51

The properties to add or update along side their values

key

key: string

value

value: any


id

id: GeoJSONFeatureId

Defined in: src/source/geojson_source_diff.ts:35

The feature ID


newGeometry?

optional newGeometry: GeoJSON.Geometry

Defined in: src/source/geojson_source_diff.ts:39

If it's a new geometry, place it here


removeAllProperties?

optional removeAllProperties: boolean

Defined in: src/source/geojson_source_diff.ts:43

Setting to true will remove all preperties


removeProperties?

optional removeProperties: string[]

Defined in: src/source/geojson_source_diff.ts:47

The properties keys to remove