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/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -144,6 +144,8 @@ const exported = {
|
|
|
144
144
|
* The example below will be triggered for custom:// urls defined in the sources list in the style definitions.
|
|
145
145
|
* The function passed will receive the request parameters and should call the callback with the resulting request,
|
|
146
146
|
* for example a pbf vector tile, non-compressed, represented as ArrayBuffer.
|
|
147
|
+
*
|
|
148
|
+
* @function addProtocol
|
|
147
149
|
* @param {string} customProtocol - the protocol to hook, for example 'custom'
|
|
148
150
|
* @param {Function} loadFn - the function to use when trying to fetch a tile specified by the customProtocol
|
|
149
151
|
* @example
|
|
@@ -176,6 +178,8 @@ const exported = {
|
|
|
176
178
|
|
|
177
179
|
/**
|
|
178
180
|
* Removes a previusly added protocol
|
|
181
|
+
*
|
|
182
|
+
* @function removeProtocol
|
|
179
183
|
* @param {string} customProtocol - the custom protocol to remove registration for
|
|
180
184
|
* @example
|
|
181
185
|
* maplibregl.removeProtocol('custom');
|
|
@@ -188,13 +192,6 @@ const exported = {
|
|
|
188
192
|
//This gets automatically stripped out in production builds.
|
|
189
193
|
Debug.extend(exported, {isSafari, getPerformanceMetrics: PerformanceUtils.getPerformanceMetrics});
|
|
190
194
|
|
|
191
|
-
/**
|
|
192
|
-
* The version of MapLibre GL JS in use as specified in `package.json`,
|
|
193
|
-
* `CHANGELOG.md`, and the GitHub release.
|
|
194
|
-
*
|
|
195
|
-
* @var {string} version
|
|
196
|
-
*/
|
|
197
|
-
|
|
198
195
|
/**
|
|
199
196
|
* Test whether the browser supports MapLibre GL JS.
|
|
200
197
|
*
|