@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 CHANGED
@@ -1,4 +1,4 @@
1
- ## 13.25.0-beta.1
1
+ ## 13.25.0
2
2
 
3
3
  ### Features ✨
4
4
 
package/dist/index.cjs CHANGED
@@ -101,7 +101,7 @@
101
101
  },
102
102
  projection: {
103
103
  type: "projection",
104
- doc: "The projection the map should be rendered in. Supported projections are Albers, Equal Earth, Equirectangular (WGS84), Lambert conformal conic, Mercator, Natural Earth, Globe, and Winkel Tripel. Terrain, fog, sky and CustomLayerInterface are not supported for projections other than mercator.",
104
+ 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.",
105
105
  example: {
106
106
  name: "albers",
107
107
  center: [
@@ -4708,15 +4708,22 @@
4708
4708
  "line-trim-offset": {
4709
4709
  type: "array",
4710
4710
  value: "number",
4711
- 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 gradient range [0.0, 1.0]. If either 'trim-start' or 'trim-end' offset is out of valid range, the default range will be set.",
4711
+ 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].",
4712
4712
  length: 2,
4713
4713
  "default": [
4714
4714
  0,
4715
4715
  0
4716
4716
  ],
4717
+ minimum: [
4718
+ 0,
4719
+ 0
4720
+ ],
4721
+ maximum: [
4722
+ 1,
4723
+ 1
4724
+ ],
4717
4725
  transition: false,
4718
4726
  requires: [
4719
- "line-gradient",
4720
4727
  {
4721
4728
  source: "geojson",
4722
4729
  has: {
@@ -4726,7 +4733,7 @@
4726
4733
  ],
4727
4734
  "sdk-support": {
4728
4735
  "basic functionality": {
4729
- js: "2.3.0",
4736
+ js: "2.9.0",
4730
4737
  android: "10.5.0",
4731
4738
  ios: "10.5.0",
4732
4739
  macos: "10.5.0"
@@ -14497,10 +14504,8 @@ ${ JSON.stringify(filterExp, null, 2) }
14497
14504
  errors.push(new ValidationError(key, layer, `layer "${ layer.id }" must specify a "source-layer"`));
14498
14505
  } else if (sourceType === 'raster-dem' && type !== 'hillshade') {
14499
14506
  errors.push(new ValidationError(key, layer.source, 'raster-dem source can only be used with layer type \'hillshade\'.'));
14500
- } else if (type === 'line' && layer.paint && layer.paint['line-gradient'] && (sourceType !== 'geojson' || !source.lineMetrics)) {
14507
+ } else if (type === 'line' && layer.paint && (layer.paint['line-gradient'] || layer.paint['line-trim-offset']) && (sourceType !== 'geojson' || !source.lineMetrics)) {
14501
14508
  errors.push(new ValidationError(key, layer, `layer "${ layer.id }" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`));
14502
- } else if (type === 'line' && layer.paint && layer.paint['line-trim-offset'] && !layer.paint['line-gradient']) {
14503
- errors.push(new ValidationError(key, layer, `layer "${ layer.id }" specifies a line-trim-offset, which requires line-gradient enabled.`));
14504
14509
  }
14505
14510
  }
14506
14511
  }