@@ -144,6 +144,8 @@ const exported = {
144144 * The example below will be triggered for custom:// urls defined in the sources list in the style definitions.
145145 * The function passed will receive the request parameters and should call the callback with the resulting request,
146146 * for example a pbf vector tile, non-compressed, represented as ArrayBuffer.
147+ *
148+ * @function addProtocol
147149 * @param {string } customProtocol - the protocol to hook, for example 'custom'
148150 * @param {Function } loadFn - the function to use when trying to fetch a tile specified by the customProtocol
149151 * @example
@@ -176,6 +178,8 @@ const exported = {
176178
177179 /**
178180 * Removes a previusly added protocol
181+ *
182+ * @function removeProtocol
179183 * @param {string } customProtocol - the custom protocol to remove registration for
180184 * @example
181185 * maplibregl.removeProtocol('custom');
@@ -188,13 +192,6 @@ const exported = {
188192//This gets automatically stripped out in production builds.
189193Debug . extend ( exported , { isSafari, getPerformanceMetrics : PerformanceUtils . getPerformanceMetrics } ) ;
190194
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-
198195/**
199196 * Test whether the browser supports MapLibre GL JS.
200197 *
0 commit comments