Type Alias GeoJSONFeatureDiff
type GeoJSONFeatureDiff = {
addOrUpdateProperties?: { key: string; value: any }[];
id: GeoJSONFeatureId;
newGeometry?: Geometry;
removeAllProperties?: boolean;
removeProperties?: string[];
}
addOrUpdateProperties?: { key: string; value: any }[];
id: GeoJSONFeatureId;
newGeometry?: Geometry;
removeAllProperties?: boolean;
removeProperties?: string[];
}
Index
Properties
OptionaladdOrUpdateProperties
addOrUpdateProperties?: { key: string; value: any }[]
The properties to add or update along side their values
id
The feature ID
OptionalnewGeometry
If it's a new geometry, place it here
OptionalremoveAllProperties
removeAllProperties?: boolean
Setting to true will remove all preperties
OptionalremoveProperties
removeProperties?: string[]
The properties keys to remove
Was this helpful?
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.