@mapbox/mapbox-gl-style-spec 14.7.0-beta.1 → 14.7.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/dist/index.cjs +2221 -2160
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.es.js +2221 -2160
- package/dist/index.es.js.map +1 -1
- package/expression/index.ts +1 -1
- package/package.json +1 -1
- package/reference/v8.json +42 -7
- package/types.ts +3 -1
package/expression/index.ts
CHANGED
|
@@ -36,7 +36,7 @@ import type {FeatureDistanceData} from '../feature_filter/index';
|
|
|
36
36
|
import type {ConfigOptions} from '../types/config_options';
|
|
37
37
|
|
|
38
38
|
export interface Feature {
|
|
39
|
-
readonly type: 1 | 2 | 3 | 'Unknown' | 'Point' | 'LineString' | 'Polygon';
|
|
39
|
+
readonly type: 0 | 1 | 2 | 3 | 'Unknown' | 'Point' | 'LineString' | 'Polygon';
|
|
40
40
|
readonly id?: number | null;
|
|
41
41
|
readonly properties: {
|
|
42
42
|
[_: string]: any;
|
package/package.json
CHANGED
package/reference/v8.json
CHANGED
|
@@ -230,6 +230,10 @@
|
|
|
230
230
|
},
|
|
231
231
|
"featureset": {
|
|
232
232
|
"experimental": true,
|
|
233
|
+
"metadata": {
|
|
234
|
+
"type": "*",
|
|
235
|
+
"doc": "Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."
|
|
236
|
+
},
|
|
233
237
|
"selectors": {
|
|
234
238
|
"type": "array",
|
|
235
239
|
"value": "selector",
|
|
@@ -6053,16 +6057,22 @@
|
|
|
6053
6057
|
"js": "3.0.0",
|
|
6054
6058
|
"android": "11.0.0",
|
|
6055
6059
|
"ios": "11.0.0"
|
|
6060
|
+
},
|
|
6061
|
+
"data-driven styling": {
|
|
6062
|
+
"js": "3.8.0",
|
|
6063
|
+
"android": "11.8.0",
|
|
6064
|
+
"ios": "11.8.0"
|
|
6056
6065
|
}
|
|
6057
6066
|
},
|
|
6058
6067
|
"expression": {
|
|
6059
6068
|
"interpolated": true,
|
|
6060
6069
|
"parameters": [
|
|
6061
6070
|
"zoom",
|
|
6062
|
-
"measure-light"
|
|
6071
|
+
"measure-light",
|
|
6072
|
+
"feature-state"
|
|
6063
6073
|
]
|
|
6064
6074
|
},
|
|
6065
|
-
"property-type": "data-
|
|
6075
|
+
"property-type": "data-driven"
|
|
6066
6076
|
},
|
|
6067
6077
|
"fill-extrusion-line-width": {
|
|
6068
6078
|
"type": "number",
|
|
@@ -7232,7 +7242,8 @@
|
|
|
7232
7242
|
"interpolated": true,
|
|
7233
7243
|
"parameters": [
|
|
7234
7244
|
"zoom",
|
|
7235
|
-
"measure-light"
|
|
7245
|
+
"measure-light",
|
|
7246
|
+
"feature-state"
|
|
7236
7247
|
]
|
|
7237
7248
|
},
|
|
7238
7249
|
"property-type": "data-driven"
|
|
@@ -7263,7 +7274,8 @@
|
|
|
7263
7274
|
"interpolated": true,
|
|
7264
7275
|
"parameters": [
|
|
7265
7276
|
"zoom",
|
|
7266
|
-
"measure-light"
|
|
7277
|
+
"measure-light",
|
|
7278
|
+
"feature-state"
|
|
7267
7279
|
]
|
|
7268
7280
|
},
|
|
7269
7281
|
"property-type": "data-driven"
|
|
@@ -8524,6 +8536,31 @@
|
|
|
8524
8536
|
}
|
|
8525
8537
|
},
|
|
8526
8538
|
"paint_background": {
|
|
8539
|
+
"background-pitch-alignment": {
|
|
8540
|
+
"type": "enum",
|
|
8541
|
+
"values": {
|
|
8542
|
+
"map": {
|
|
8543
|
+
"doc": "The background is aligned to the plane of the map."
|
|
8544
|
+
},
|
|
8545
|
+
"viewport": {
|
|
8546
|
+
"doc": "The background is aligned to the plane of the viewport, covering the whole screen."
|
|
8547
|
+
}
|
|
8548
|
+
},
|
|
8549
|
+
"default": "map",
|
|
8550
|
+
"doc": "Orientation of background layer.",
|
|
8551
|
+
"sdk-support": {
|
|
8552
|
+
"basic functionality": {
|
|
8553
|
+
"js": "3.8.0",
|
|
8554
|
+
"android": "11.8.0",
|
|
8555
|
+
"ios": "11.8.0"
|
|
8556
|
+
}
|
|
8557
|
+
},
|
|
8558
|
+
"expression": {
|
|
8559
|
+
"interpolated": false,
|
|
8560
|
+
"parameters": []
|
|
8561
|
+
},
|
|
8562
|
+
"property-type": "data-constant"
|
|
8563
|
+
},
|
|
8527
8564
|
"background-color": {
|
|
8528
8565
|
"type": "color",
|
|
8529
8566
|
"default": "#000000",
|
|
@@ -9187,9 +9224,7 @@
|
|
|
9187
9224
|
"doc": "An array for configuring the fade-out effect for the front cutoff of content on pitched map views. It contains three values: start, range and final opacity. The start parameter defines the point at which the fade-out effect begins, with smaller values causing the effect to start earlier. The range parameter specifies how long the fade-out effect will last. A value of 0.0 for range makes content disappear immediately without a fade-out effect. The final opacity determines content opacity at the end of the fade-out effect. A value of 1.0 for final opacity means that the cutoff is completely disabled.",
|
|
9188
9225
|
"sdk-support": {
|
|
9189
9226
|
"basic functionality": {
|
|
9190
|
-
"js": "3.5.0"
|
|
9191
|
-
"android": "11.5.0",
|
|
9192
|
-
"ios": "11.5.0"
|
|
9227
|
+
"js": "3.5.0"
|
|
9193
9228
|
}
|
|
9194
9229
|
}
|
|
9195
9230
|
}
|
package/types.ts
CHANGED
|
@@ -198,6 +198,7 @@ export type FeaturesetsSpecification = {
|
|
|
198
198
|
* @experimental This is experimental and subject to change in future versions.
|
|
199
199
|
*/
|
|
200
200
|
export type FeaturesetSpecification = {
|
|
201
|
+
"metadata"?: unknown,
|
|
201
202
|
"selectors"?: Array<SelectorSpecification>
|
|
202
203
|
}
|
|
203
204
|
|
|
@@ -742,7 +743,7 @@ export type FillExtrusionLayerSpecification = {
|
|
|
742
743
|
*/
|
|
743
744
|
"fill-extrusion-rounded-roof"?: PropertyValueSpecification<boolean>,
|
|
744
745
|
"fill-extrusion-cutoff-fade-range"?: ExpressionSpecification,
|
|
745
|
-
"fill-extrusion-emissive-strength"?:
|
|
746
|
+
"fill-extrusion-emissive-strength"?: DataDrivenPropertyValueSpecification<number>,
|
|
746
747
|
"fill-extrusion-emissive-strength-transition"?: TransitionSpecification,
|
|
747
748
|
"fill-extrusion-line-width"?: DataDrivenPropertyValueSpecification<number>,
|
|
748
749
|
"fill-extrusion-line-width-transition"?: TransitionSpecification,
|
|
@@ -958,6 +959,7 @@ export type BackgroundLayerSpecification = {
|
|
|
958
959
|
"visibility"?: "visible" | "none" | ExpressionSpecification
|
|
959
960
|
},
|
|
960
961
|
"paint"?: {
|
|
962
|
+
"background-pitch-alignment"?: "map" | "viewport" | ExpressionSpecification,
|
|
961
963
|
"background-color"?: PropertyValueSpecification<ColorSpecification>,
|
|
962
964
|
"background-color-transition"?: TransitionSpecification,
|
|
963
965
|
"background-pattern"?: PropertyValueSpecification<ResolvedImageSpecification>,
|