@mapbox/mapbox-gl-style-spec 14.17.0-beta.1 → 14.17.0-beta.2

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 CHANGED
@@ -806,7 +806,6 @@
806
806
  length: 4,
807
807
  doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
808
808
  },
809
- experimental: true,
810
809
  doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
811
810
  },
812
811
  scheme: {
@@ -896,7 +895,6 @@
896
895
  length: 4,
897
896
  doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
898
897
  },
899
- experimental: true,
900
898
  doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
901
899
  },
902
900
  minzoom: {
@@ -988,7 +986,6 @@
988
986
  length: 4,
989
987
  doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
990
988
  },
991
- experimental: true,
992
989
  doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
993
990
  },
994
991
  minzoom: {
@@ -1081,7 +1078,6 @@
1081
1078
  length: 4,
1082
1079
  doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
1083
1080
  },
1084
- experimental: true,
1085
1081
  doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
1086
1082
  },
1087
1083
  minzoom: {
@@ -3560,6 +3556,7 @@
3560
3556
  requires: [
3561
3557
  "text-field"
3562
3558
  ],
3559
+ appearance: true,
3563
3560
  "sdk-support": {
3564
3561
  "basic functionality": {
3565
3562
  js: "0.10.0",
@@ -3963,6 +3960,7 @@
3963
3960
  requires: [
3964
3961
  "text-field"
3965
3962
  ],
3963
+ appearance: true,
3966
3964
  "sdk-support": {
3967
3965
  "basic functionality": {
3968
3966
  js: "0.10.0",
@@ -4094,6 +4092,7 @@
4094
4092
  "!": "text-radial-offset"
4095
4093
  }
4096
4094
  ],
4095
+ appearance: true,
4097
4096
  "sdk-support": {
4098
4097
  "basic functionality": {
4099
4098
  js: "0.10.0",
@@ -7950,6 +7949,11 @@
7950
7949
  js: "3.0.0",
7951
7950
  android: "11.0.0",
7952
7951
  ios: "11.0.0"
7952
+ },
7953
+ "data-driven styling": {
7954
+ js: "3.17.0",
7955
+ android: "11.17.0",
7956
+ ios: "11.17.0"
7953
7957
  }
7954
7958
  },
7955
7959
  expression: {
@@ -7959,7 +7963,7 @@
7959
7963
  "measure-light"
7960
7964
  ]
7961
7965
  },
7962
- "property-type": "data-constant"
7966
+ "property-type": "data-driven"
7963
7967
  },
7964
7968
  "line-border-width": {
7965
7969
  type: "number",
@@ -9798,7 +9802,8 @@
9798
9802
  expression: {
9799
9803
  interpolated: true,
9800
9804
  parameters: [
9801
- "zoom"
9805
+ "zoom",
9806
+ "measure-light"
9802
9807
  ]
9803
9808
  },
9804
9809
  "property-type": "data-constant"
@@ -13671,72 +13676,31 @@
13671
13676
  class ImageVariant {
13672
13677
  constructor(id, options = {}) {
13673
13678
  this.id = ImageId.from(id);
13674
- this.options = Object.assign({}, options);
13675
- if (!options.transform) {
13676
- this.options.transform = new DOMMatrix([
13677
- 1,
13678
- 0,
13679
- 0,
13680
- 1,
13681
- 0,
13682
- 0
13683
- ]);
13684
- } else {
13685
- const {a, b, c, d, e, f} = options.transform;
13686
- this.options.transform = new DOMMatrix([
13687
- a,
13688
- b,
13689
- c,
13690
- d,
13691
- e,
13692
- f
13693
- ]);
13694
- }
13679
+ this.params = options.params;
13680
+ this.sx = options.sx || 1;
13681
+ this.sy = options.sy || 1;
13695
13682
  }
13696
13683
  toString() {
13697
- const {a, b, c, d, e, f} = this.options.transform;
13698
- const serialized = {
13699
- name: this.id.name,
13700
- iconsetId: this.id.iconsetId,
13701
- params: this.options.params,
13702
- transform: {
13703
- a,
13704
- b,
13705
- c,
13706
- d,
13707
- e,
13708
- f
13709
- }
13710
- };
13711
- return JSON.stringify(serialized);
13684
+ return JSON.stringify(this);
13712
13685
  }
13713
13686
  static parse(str) {
13714
- let name, iconsetId, params, transform;
13687
+ let id, params, sx, sy;
13715
13688
  try {
13716
- ({name, iconsetId, params, transform} = JSON.parse(str) || {});
13717
- } catch (e2) {
13689
+ ({id, params, sx, sy} = JSON.parse(str) || {});
13690
+ } catch (e) {
13718
13691
  return null;
13719
13692
  }
13720
- if (!name)
13693
+ if (!id)
13721
13694
  return null;
13722
- const {a, b, c, d, e, f} = transform || {};
13723
- return new ImageVariant({
13724
- name,
13725
- iconsetId
13726
- }, {
13695
+ return new ImageVariant(id, {
13727
13696
  params,
13728
- transform: new DOMMatrix([
13729
- a,
13730
- b,
13731
- c,
13732
- d,
13733
- e,
13734
- f
13735
- ])
13697
+ sx,
13698
+ sy
13736
13699
  });
13737
13700
  }
13738
- scaleSelf(factor, yFactor) {
13739
- this.options.transform.scaleSelf(factor, yFactor);
13701
+ scaleSelf(factor, yFactor = factor) {
13702
+ this.sx *= factor;
13703
+ this.sy *= yFactor;
13740
13704
  return this;
13741
13705
  }
13742
13706
  }
@@ -22736,7 +22700,7 @@ Use an identity property function instead: ${ example }.`)];
22736
22700
  function requireJsonlint () {
22737
22701
  if (hasRequiredJsonlint) return jsonlint$1;
22738
22702
  hasRequiredJsonlint = 1;
22739
- (function (exports) {
22703
+ (function (exports$1) {
22740
22704
  /*
22741
22705
  Returns a Parser object of the following structure:
22742
22706
 
@@ -23780,9 +23744,9 @@ Use an identity property function instead: ${ example }.`)];
23780
23744
  return new Parser();
23781
23745
  }());
23782
23746
  if (typeof commonjsRequire !== 'undefined' && 'object' !== 'undefined') {
23783
- exports.parser = parser;
23784
- exports.Parser = parser.Parser;
23785
- exports.parse = function () {
23747
+ exports$1.parser = parser;
23748
+ exports$1.Parser = parser.Parser;
23749
+ exports$1.parse = function () {
23786
23750
  return parser.parse.apply(parser, arguments);
23787
23751
  };
23788
23752
  }