On this page

Type Alias GeoJSONSourceDiff

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.

type GeoJSONSourceDiff = {
    add?: Feature[];
    remove?: GeoJSONFeatureId[];
    removeAll?: boolean;
    update?: GeoJSONFeatureDiff[];
}
Index

Properties

add?: Feature[]

An array of features to add

remove?: GeoJSONFeatureId[]

An array of features IDs to remove

removeAll?: boolean

When set to true it will remove all features

An array of update objects

Was this helpful?
SDK JS
Reference
GeoJSONSourceDiff