Skip to content

GeoJSONSourceDiff

GeoJSONSourceDiff = object

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

The geojson source diff object - processed in the following order: remove, add, update. Provides an efficient way to update GeoJSON data in a map source without having to replace the entire dataset.

Properties

add?

optional add: GeoJSON.Feature[]

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

An array of features to add


remove?

optional remove: GeoJSONFeatureId[]

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

An array of features IDs to remove


removeAll?

optional removeAll: boolean

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

When set to true it will remove all features


update?

optional update: GeoJSONFeatureDiff[]

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

An array of update objects