maplibre-gl 2.0.4 → 2.0.5
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/maplibre-gl.d.ts +11 -3
- package/dist/maplibre-gl.js +1 -1
- package/dist/maplibre-gl.js.map +1 -1
- package/package.json +8 -14
- package/src/source/image_source.test.ts +153 -0
- package/src/ui/camera.ts +8 -0
- package/src/ui/map.ts +2 -2
- package/src/util/ajax.test.ts +206 -0
- package/src/util/test/util.ts +14 -0
package/dist/maplibre-gl.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v6.
|
|
1
|
+
// Generated by dts-bundle-generator v6.4.0
|
|
2
2
|
|
|
3
3
|
import Point from '@mapbox/point-geometry';
|
|
4
4
|
import TinySDF from '@mapbox/tiny-sdf';
|
|
@@ -6993,6 +6993,14 @@ export declare class TaskQueue {
|
|
|
6993
6993
|
run(timeStamp?: number): void;
|
|
6994
6994
|
clear(): void;
|
|
6995
6995
|
}
|
|
6996
|
+
/**
|
|
6997
|
+
* A [Point](https://github.com/mapbox/point-geometry) or an array of two numbers representing `x` and `y` screen coordinates in pixels.
|
|
6998
|
+
*
|
|
6999
|
+
* @typedef {(Point | [number, number])} PointLike
|
|
7000
|
+
* @example
|
|
7001
|
+
* var p1 = new Point(-77, 38); // a PointLike which is a Point
|
|
7002
|
+
* var p2 = [-77, 38]; // a PointLike which is an array of two numbers
|
|
7003
|
+
*/
|
|
6996
7004
|
export declare type PointLike = Point | [
|
|
6997
7005
|
number,
|
|
6998
7006
|
number
|
|
@@ -8542,11 +8550,11 @@ export declare class Map extends Camera {
|
|
|
8542
8550
|
*/
|
|
8543
8551
|
setRenderWorldCopies(renderWorldCopies?: boolean | null): this;
|
|
8544
8552
|
/**
|
|
8545
|
-
* Returns a
|
|
8553
|
+
* Returns a [Point](https://github.com/mapbox/point-geometry) representing pixel coordinates, relative to the map's `container`,
|
|
8546
8554
|
* that correspond to the specified geographical location.
|
|
8547
8555
|
*
|
|
8548
8556
|
* @param {LngLatLike} lnglat The geographical location to project.
|
|
8549
|
-
* @returns {Point} The
|
|
8557
|
+
* @returns {Point} The [Point](https://github.com/mapbox/point-geometry) corresponding to `lnglat`, relative to the map's `container`.
|
|
8550
8558
|
* @example
|
|
8551
8559
|
* var coordinate = [-122.420679, 37.772537];
|
|
8552
8560
|
* var point = map.project(coordinate);
|
package/dist/maplibre-gl.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v2.0.
|
|
1
|
+
/* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v2.0.5/LICENSE.txt */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|