Skip to content

Commit

Permalink
Add metadata to "featureset"
Browse files Browse the repository at this point in the history
  • Loading branch information
kiryldz authored and mourner committed Oct 3, 2024
1 parent 732345f commit e0f2616
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/style-spec/reference/v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/style-spec/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<SelectorSpecification>
}

Expand Down

0 comments on commit e0f2616

Please sign in to comment.