@mapbox/mapbox-gl-style-spec 13.22.0 → 13.23.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -1
- package/diff.js +8 -1
- package/dist/index.cjs +480 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +480 -69
- package/dist/index.es.js.map +1 -1
- package/expression/definitions/coalesce.js +7 -5
- package/expression/definitions/index.js +10 -0
- package/expression/evaluation_context.js +30 -0
- package/expression/index.js +9 -3
- package/expression/parsing_context.js +1 -1
- package/expression/types/formatted.js +2 -1
- package/feature_filter/index.js +183 -22
- package/package.json +1 -1
- package/reference/v8.json +190 -11
- package/style-spec.js +1 -1
- package/types.js +7 -0
- package/validate/validate.js +3 -1
- package/validate/validate_expression.js +33 -2
- package/validate/validate_filter.js +3 -1
- package/validate/validate_layer.js +3 -1
- package/validate/validate_projection.js +30 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
# 13.
|
|
1
|
+
# 13.23.1-beta.1
|
|
2
|
+
|
|
3
|
+
### ✨ Features and improvements
|
|
4
|
+
|
|
5
|
+
* Improve `coalesce` expressions to return a `ResolvedImage` when images are missing. ([#11371](https://github.com/mapbox/mapbox-gl-js/pull/11371))
|
|
6
|
+
|
|
7
|
+
# 13.23.0
|
|
8
|
+
|
|
9
|
+
### ✨ Features and improvements
|
|
10
|
+
|
|
11
|
+
* Add a `projection` root property that allows a non-mercator projection to be set as a style's default projection. ([#11124](https://github.com/mapbox/mapbox-gl-js/pull/11124))
|
|
12
|
+
* Add support for using `["pitch"]` and `["distance-from-camera"]` expressions within the `filter` of a symbol layer. ([#10795](https://github.com/mapbox/mapbox-gl-js/pull/10795))
|
|
13
|
+
|
|
14
|
+
# 13.22.0
|
|
15
|
+
|
|
2
16
|
### ✨ Features and improvements
|
|
3
17
|
|
|
4
18
|
* Added `protected` field to mapbox-api-supported validation. ([#10968](https://github.com/mapbox/mapbox-gl-js/pull/10968))
|
|
19
|
+
|
|
5
20
|
# 13.21.0
|
|
6
21
|
|
|
7
22
|
### ✨ Features and improvements
|
package/diff.js
CHANGED
|
@@ -106,8 +106,12 @@ const operations = {
|
|
|
106
106
|
/*
|
|
107
107
|
* { command: 'setFog', args: [fogProperties] }
|
|
108
108
|
*/
|
|
109
|
-
setFog: 'setFog'
|
|
109
|
+
setFog: 'setFog',
|
|
110
110
|
|
|
111
|
+
/*
|
|
112
|
+
* { command: 'setProjection', args: [projectionProperties] }
|
|
113
|
+
*/
|
|
114
|
+
setProjection: 'setProjection'
|
|
111
115
|
};
|
|
112
116
|
|
|
113
117
|
function addSource(sourceId, after, commands) {
|
|
@@ -363,6 +367,9 @@ function diffStyles(before, after) {
|
|
|
363
367
|
if (!isEqual(before.fog, after.fog)) {
|
|
364
368
|
commands.push({command: operations.setFog, args: [after.fog]});
|
|
365
369
|
}
|
|
370
|
+
if (!isEqual(before.projection, after.projection)) {
|
|
371
|
+
commands.push({command: operations.setProjection, args: [after.projection]});
|
|
372
|
+
}
|
|
366
373
|
|
|
367
374
|
// Handle changes to `sources`
|
|
368
375
|
// If a source is to be removed, we also--before the removeSource
|