Spec-Zone.ru › MapLibre GL JS

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?

optional addOrUpdateProperties?: object[]

The properties to add or update along side their values

key

key: string

value

value: any


id

id: GeoJSONFeatureId

The feature ID


newGeometry?

optional newGeometry?: GeoJSON.Geometry

If it's a new geometry, place it here


removeAllProperties?

optional removeAllProperties?: boolean

Setting to true will remove all preperties


removeProperties?

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

Spec-Zone.ru

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