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.
- package/build/generate-typings.ts +12 -2
- package/dist/maplibre-gl-csp-worker.js +1 -1
- package/dist/maplibre-gl-csp.js +1 -1
- package/dist/maplibre-gl-dev.js +272 -67
- package/dist/maplibre-gl.d.ts +19 -9
- package/dist/maplibre-gl.js +4 -4
- package/dist/style-spec/index.d.ts +1781 -0
- package/package.json +2 -2
- package/src/data/bucket/symbol_bucket.test.ts +30 -19
- package/src/index.test.ts +9 -0
- package/src/index.ts +11 -1
- package/src/source/worker.ts +2 -4
- package/src/source/worker_tile.ts +9 -1
- package/src/style-spec/CHANGELOG.md +10 -0
- package/src/style-spec/composite.test.ts +7 -8
- package/src/style-spec/expression/index.ts +13 -13
- package/src/style-spec/expression/parsing_context.ts +4 -4
- package/src/style-spec/expression/parsing_error.ts +2 -2
- package/src/style-spec/migrate/v8.test.ts +12 -14
- package/src/style-spec/migrate/v9.test.ts +2 -4
- package/src/style-spec/migrate.test.ts +6 -8
- package/src/style-spec/package.json +2 -1
- package/src/style-spec/reference/latest.ts +1 -1
- package/src/style-spec/style-spec.ts +11 -10
- package/src/symbol/symbol_layout.ts +56 -56
- package/src/ui/map.test.ts +11 -0
- package/src/ui/map.ts +11 -0
- package/src/util/util.ts +2 -3
package/dist/maplibre-gl.d.ts
CHANGED
|
@@ -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
|
|
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?:
|
|
1604
|
+
expression?: ExpressionSpecificationDefinition;
|
|
1605
1605
|
transition: boolean;
|
|
1606
1606
|
default?: number;
|
|
1607
1607
|
} | {
|
|
1608
1608
|
type: "string";
|
|
1609
1609
|
"property-type": ExpressionType;
|
|
1610
|
-
expression?:
|
|
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?:
|
|
1617
|
+
expression?: ExpressionSpecificationDefinition;
|
|
1618
1618
|
transition: boolean;
|
|
1619
1619
|
default?: boolean;
|
|
1620
1620
|
} | {
|
|
1621
1621
|
type: "enum";
|
|
1622
1622
|
"property-type": ExpressionType;
|
|
1623
|
-
expression?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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).
|