Spec-Zone.ru › MapLibre GL JS

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?

optional add?: GeoJSON.Feature[]

An array of features to add


remove?

optional remove?: GeoJSONFeatureId[]

An array of features IDs to remove


removeAll?

optional removeAll?: boolean

When set to true it will remove all features


update?

optional update?: 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/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API