diff --git a/package-lock.json b/package-lock.json index e6312316192..4a73a55e506 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16048,7 +16048,7 @@ }, "src/style-spec": { "name": "@mapbox/mapbox-gl-style-spec", - "version": "14.7.0", + "version": "14.7.1", "license": "SEE LICENSE IN LICENSE.txt", "dependencies": { "@mapbox/jsonlint-lines-primitives": "~2.0.2", diff --git a/src/style-spec/package.json b/src/style-spec/package.json index 677a9901c97..ada4af95991 100644 --- a/src/style-spec/package.json +++ b/src/style-spec/package.json @@ -1,6 +1,6 @@ { "name": "@mapbox/mapbox-gl-style-spec", - "version": "14.7.0", + "version": "14.7.1", "description": "a specification for mapbox gl styles", "author": "Mapbox", "license": "SEE LICENSE IN LICENSE.txt", diff --git a/src/style-spec/reference/v8.json b/src/style-spec/reference/v8.json index 543b5807ad5..092f69a5ef7 100644 --- a/src/style-spec/reference/v8.json +++ b/src/style-spec/reference/v8.json @@ -230,6 +230,10 @@ }, "featureset": { "experimental": true, + "metadata": { + "type": "*", + "doc": "Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'." + }, "selectors": { "type": "array", "value": "selector", diff --git a/src/style-spec/types.ts b/src/style-spec/types.ts index b790aa4a6ea..e2f09ea0f8c 100644 --- a/src/style-spec/types.ts +++ b/src/style-spec/types.ts @@ -198,6 +198,7 @@ export type FeaturesetsSpecification = { * @experimental This is experimental and subject to change in future versions. */ export type FeaturesetSpecification = { + "metadata"?: unknown, "selectors"?: Array }