maplibre-gl 2.2.0-pre.4 → 2.3.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.
@@ -1594,33 +1594,33 @@ export declare type FeatureFilter = {
1594
1594
  };
1595
1595
  export declare type ExpressionType = "data-driven" | "cross-faded" | "cross-faded-data-driven" | "color-ramp" | "data-constant" | "constant";
1596
1596
  export declare type ExpressionParameters = Array<"zoom" | "feature" | "feature-state" | "heatmap-density" | "line-progress">;
1597
- export declare type ExpressionSpecification = {
1597
+ export declare type ExpressionSpecificationDefinition = {
1598
1598
  interpolated: boolean;
1599
1599
  parameters: ExpressionParameters;
1600
1600
  };
1601
1601
  export declare type StylePropertySpecification = {
1602
1602
  type: "number";
1603
1603
  "property-type": ExpressionType;
1604
- expression?: ExpressionSpecification;
1604
+ expression?: ExpressionSpecificationDefinition;
1605
1605
  transition: boolean;
1606
1606
  default?: number;
1607
1607
  } | {
1608
1608
  type: "string";
1609
1609
  "property-type": ExpressionType;
1610
- expression?: ExpressionSpecification;
1610
+ expression?: ExpressionSpecificationDefinition;
1611
1611
  transition: boolean;
1612
1612
  default?: string;
1613
1613
  tokens?: boolean;
1614
1614
  } | {
1615
1615
  type: "boolean";
1616
1616
  "property-type": ExpressionType;
1617
- expression?: ExpressionSpecification;
1617
+ expression?: ExpressionSpecificationDefinition;
1618
1618
  transition: boolean;
1619
1619
  default?: boolean;
1620
1620
  } | {
1621
1621
  type: "enum";
1622
1622
  "property-type": ExpressionType;
1623
- expression?: ExpressionSpecification;
1623
+ expression?: ExpressionSpecificationDefinition;
1624
1624
  values: {
1625
1625
  [_: string]: {};
1626
1626
  };
@@ -1629,7 +1629,7 @@ export declare type StylePropertySpecification = {
1629
1629
  } | {
1630
1630
  type: "color";
1631
1631
  "property-type": ExpressionType;
1632
- expression?: ExpressionSpecification;
1632
+ expression?: ExpressionSpecificationDefinition;
1633
1633
  transition: boolean;
1634
1634
  default?: string;
1635
1635
  overridable: boolean;
@@ -1637,7 +1637,7 @@ export declare type StylePropertySpecification = {
1637
1637
  type: "array";
1638
1638
  value: "number";
1639
1639
  "property-type": ExpressionType;
1640
- expression?: ExpressionSpecification;
1640
+ expression?: ExpressionSpecificationDefinition;
1641
1641
  length?: number;
1642
1642
  transition: boolean;
1643
1643
  default?: Array<number>;
@@ -1645,14 +1645,14 @@ export declare type StylePropertySpecification = {
1645
1645
  type: "array";
1646
1646
  value: "string";
1647
1647
  "property-type": ExpressionType;
1648
- expression?: ExpressionSpecification;
1648
+ expression?: ExpressionSpecificationDefinition;
1649
1649
  length?: number;
1650
1650
  transition: boolean;
1651
1651
  default?: Array<string>;
1652
1652
  } | {
1653
1653
  type: "padding";
1654
1654
  "property-type": ExpressionType;
1655
- expression?: ExpressionSpecification;
1655
+ expression?: ExpressionSpecificationDefinition;
1656
1656
  transition: boolean;
1657
1657
  default?: number | Array<number>;
1658
1658
  };
@@ -10885,6 +10885,11 @@ export declare class Map extends Camera {
10885
10885
  get vertices(): boolean;
10886
10886
  set vertices(value: boolean);
10887
10887
  _setCacheLimits(limit: number, checkThreshold: number): void;
10888
+ /**
10889
+ * Returns the package version of the library
10890
+ * @returns {string} Package version of the library
10891
+ */
10892
+ get version(): string;
10888
10893
  }
10889
10894
  export declare type NavigationOptions = {
10890
10895
  showCompass?: boolean;
@@ -11633,6 +11638,11 @@ declare const exported: {
11633
11638
  * maplibregl.clearPrewarmedResources()
11634
11639
  */
11635
11640
  clearPrewarmedResources: typeof clearPrewarmedResources;
11641
+ /**
11642
+ * Returns the package version of the library
11643
+ * @returns {string} Package version of the library
11644
+ */
11645
+ readonly version: string;
11636
11646
  /**
11637
11647
  * Gets and sets the number of web workers instantiated on a page with GL JS maps.
11638
11648
  * By default, it is set to half the number of CPU cores (capped at 6).