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?
optionaladd:GeoJSON.Feature[]
Defined in: src/source/geojson_source_diff.ts:23
An array of features to add
remove?
optionalremove:GeoJSONFeatureId[]
Defined in: src/source/geojson_source_diff.ts:19
An array of features IDs to remove
removeAll?
optionalremoveAll:boolean
Defined in: src/source/geojson_source_diff.ts:15
When set to true it will remove all features
update?
optionalupdate:GeoJSONFeatureDiff[]
Defined in: src/source/geojson_source_diff.ts:27
An array of update objects