GeoJSONFeatureDiff
GeoJSONFeatureDiff =
object
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.
Properties
addOrUpdateProperties?
optionaladdOrUpdateProperties?:object[]
The properties to add or update along side their values
key
key:
string
value
value:
any
id
id:
GeoJSONFeatureId
The feature ID
newGeometry?
optionalnewGeometry?:GeoJSON.Geometry
If it's a new geometry, place it here
removeAllProperties?
optionalremoveAllProperties?:boolean
Setting to true will remove all preperties
removeProperties?
optionalremoveProperties?:string[]
The properties keys to remove
© MapLibre contributors
Licensed under the 3-Clause BSD License.
https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/GeoJSONFeatureDiff/