On this page

Type Alias GeoJSONFeatureDiff

A geojson feature diff object - processed in the following order: new geometry, remove properties, add/update properties. Provides an efficient way to update GeoJSON features in a map source without replacing the entire feature.

type GeoJSONFeatureDiff = {
    addOrUpdateProperties?: { key: string; value: any }[];
    id: GeoJSONFeatureId;
    newGeometry?: Geometry;
    removeAllProperties?: boolean;
    removeProperties?: string[];
}
Index

Properties

addOrUpdateProperties?: { key: string; value: any }[]

The properties to add or update along side their values

The feature ID

newGeometry?: Geometry

If it's a new geometry, place it here

removeAllProperties?: boolean

Setting to true will remove all preperties

removeProperties?: string[]

The properties keys to remove

Was this helpful?
SDK JS
Reference
GeoJSONFeatureDiff