GeoJSONSourceDiff
GeoJSONSourceDiff =
object
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[]
An array of features to add
remove?
optionalremove?:GeoJSONFeatureId[]
An array of features IDs to remove
removeAll?
optionalremoveAll?:boolean
When set to true it will remove all features
update?
optionalupdate?:GeoJSONFeatureDiff[]
An array of update objects
© MapLibre contributors
Licensed under the 3-Clause BSD License.
https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/GeoJSONSourceDiff/