maplibre-gl 2.0.0 → 2.0.1
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 +6 -0
- package/dist/maplibre-gl.d.ts +4 -6
- package/dist/maplibre-gl.js +1 -1
- package/dist/maplibre-gl.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -7
package/CHANGELOG.md
CHANGED
package/dist/maplibre-gl.d.ts
CHANGED
|
@@ -10540,6 +10540,8 @@ declare const exported: {
|
|
|
10540
10540
|
* The example below will be triggered for custom:// urls defined in the sources list in the style definitions.
|
|
10541
10541
|
* The function passed will receive the request parameters and should call the callback with the resulting request,
|
|
10542
10542
|
* for example a pbf vector tile, non-compressed, represented as ArrayBuffer.
|
|
10543
|
+
*
|
|
10544
|
+
* @function addProtocol
|
|
10543
10545
|
* @param {string} customProtocol - the protocol to hook, for example 'custom'
|
|
10544
10546
|
* @param {Function} loadFn - the function to use when trying to fetch a tile specified by the customProtocol
|
|
10545
10547
|
* @example
|
|
@@ -10569,18 +10571,14 @@ declare const exported: {
|
|
|
10569
10571
|
addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable): void;
|
|
10570
10572
|
/**
|
|
10571
10573
|
* Removes a previusly added protocol
|
|
10574
|
+
*
|
|
10575
|
+
* @function removeProtocol
|
|
10572
10576
|
* @param {string} customProtocol - the custom protocol to remove registration for
|
|
10573
10577
|
* @example
|
|
10574
10578
|
* maplibregl.removeProtocol('custom');
|
|
10575
10579
|
*/
|
|
10576
10580
|
removeProtocol(customProtocol: string): void;
|
|
10577
10581
|
};
|
|
10578
|
-
/**
|
|
10579
|
-
* The version of MapLibre GL JS in use as specified in `package.json`,
|
|
10580
|
-
* `CHANGELOG.md`, and the GitHub release.
|
|
10581
|
-
*
|
|
10582
|
-
* @var {string} version
|
|
10583
|
-
*/
|
|
10584
10582
|
/**
|
|
10585
10583
|
* Test whether the browser supports MapLibre GL JS.
|
|
10586
10584
|
*
|
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.1/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) :
|