Skip to content

Commit

Permalink
fix promoteId spec definitions (#9212)
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner authored Jan 21, 2020
1 parent 51d75fc commit 87f3393
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/style-spec/reference/v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@
"type": "string",
"doc": "Contains an attribution to be displayed when the map is shown to a user."
},
"promoteId": {
"type": "promoteId",
"doc": "A property to use as a feature id (for feature state). Either a property name, or an object of the form `{<sourceLayer>: <propertyName>}`. If specified as a string for a vector tile source, the same property is used across all its source layers."
},
"*": {
"type": "*",
"doc": "Other keys to configure the data source."
Expand Down Expand Up @@ -317,10 +321,6 @@
"default": "mapbox",
"doc": "The encoding used by this source. Mapbox Terrain RGB is used by default"
},
"promoteId": {
"type": "promoteId",
"doc": "A property to use as a feature id (for feature state). Either a property name, or an object of the form `{<sourceLayer>: <propertyName>}`."
},
"*": {
"type": "*",
"doc": "Other keys to configure the data source."
Expand Down Expand Up @@ -5786,5 +5786,11 @@
"type": "property-type",
"doc": "Property is constant across all zoom levels and property values."
}
},
"promoteId": {
"*": {
"type": "string",
"doc": "A name of a feature property to use as ID for feature state."
}
}
}

0 comments on commit 87f3393

Please sign in to comment.