@mapbox/mapbox-gl-style-spec 13.25.0-beta.2 → 13.25.0
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 +1 -1
- package/dist/index.cjs +12 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +12 -7
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/reference/v8.json +5 -4
- package/validate/validate_layer.js +1 -3
package/dist/index.es.js
CHANGED
|
@@ -95,7 +95,7 @@ var $root = {
|
|
|
95
95
|
},
|
|
96
96
|
projection: {
|
|
97
97
|
type: "projection",
|
|
98
|
-
doc: "The projection the map should be rendered in. Supported projections are Albers, Equal Earth, Equirectangular (WGS84), Lambert conformal conic,
|
|
98
|
+
doc: "The projection the map should be rendered in. Supported projections are Mercator, Globe, Albers, Equal Earth, Equirectangular (WGS84), Lambert conformal conic, Natural Earth, and Winkel Tripel. Terrain, sky and fog are supported by only Mercator and globe. CustomLayerInterface is not supported outside of Mercator.",
|
|
99
99
|
example: {
|
|
100
100
|
name: "albers",
|
|
101
101
|
center: [
|
|
@@ -4702,15 +4702,22 @@ var paint_line = {
|
|
|
4702
4702
|
"line-trim-offset": {
|
|
4703
4703
|
type: "array",
|
|
4704
4704
|
value: "number",
|
|
4705
|
-
doc: "The line part between [trim-start, trim-end] will be marked as transparent to make a route vanishing effect. The line trim-off offset is based on the whole line
|
|
4705
|
+
doc: "The line part between [trim-start, trim-end] will be marked as transparent to make a route vanishing effect. The line trim-off offset is based on the whole line range [0.0, 1.0].",
|
|
4706
4706
|
length: 2,
|
|
4707
4707
|
"default": [
|
|
4708
4708
|
0,
|
|
4709
4709
|
0
|
|
4710
4710
|
],
|
|
4711
|
+
minimum: [
|
|
4712
|
+
0,
|
|
4713
|
+
0
|
|
4714
|
+
],
|
|
4715
|
+
maximum: [
|
|
4716
|
+
1,
|
|
4717
|
+
1
|
|
4718
|
+
],
|
|
4711
4719
|
transition: false,
|
|
4712
4720
|
requires: [
|
|
4713
|
-
"line-gradient",
|
|
4714
4721
|
{
|
|
4715
4722
|
source: "geojson",
|
|
4716
4723
|
has: {
|
|
@@ -4720,7 +4727,7 @@ var paint_line = {
|
|
|
4720
4727
|
],
|
|
4721
4728
|
"sdk-support": {
|
|
4722
4729
|
"basic functionality": {
|
|
4723
|
-
js: "2.
|
|
4730
|
+
js: "2.9.0",
|
|
4724
4731
|
android: "10.5.0",
|
|
4725
4732
|
ios: "10.5.0",
|
|
4726
4733
|
macos: "10.5.0"
|
|
@@ -14491,10 +14498,8 @@ function validateLayer(options) {
|
|
|
14491
14498
|
errors.push(new ValidationError(key, layer, `layer "${ layer.id }" must specify a "source-layer"`));
|
|
14492
14499
|
} else if (sourceType === 'raster-dem' && type !== 'hillshade') {
|
|
14493
14500
|
errors.push(new ValidationError(key, layer.source, 'raster-dem source can only be used with layer type \'hillshade\'.'));
|
|
14494
|
-
} else if (type === 'line' && layer.paint && layer.paint['line-gradient'] && (sourceType !== 'geojson' || !source.lineMetrics)) {
|
|
14501
|
+
} else if (type === 'line' && layer.paint && (layer.paint['line-gradient'] || layer.paint['line-trim-offset']) && (sourceType !== 'geojson' || !source.lineMetrics)) {
|
|
14495
14502
|
errors.push(new ValidationError(key, layer, `layer "${ layer.id }" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`));
|
|
14496
|
-
} else if (type === 'line' && layer.paint && layer.paint['line-trim-offset'] && !layer.paint['line-gradient']) {
|
|
14497
|
-
errors.push(new ValidationError(key, layer, `layer "${ layer.id }" specifies a line-trim-offset, which requires line-gradient enabled.`));
|
|
14498
14503
|
}
|
|
14499
14504
|
}
|
|
14500
14505
|
}
|