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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "maplibre-gl",
3
3
  "description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "main": "dist/maplibre-gl.js",
6
6
  "style": "dist/maplibre-gl.css",
7
7
  "license": "BSD-3-Clause",
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
  *