MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / off

Method off

src/mapboxgl/overlay/theme/ThemeLayer.js:388–396  ·  view source on GitHub ↗

* @function ThemeLayer.prototype.off * @description 移除专题要素事件监听。 * @param {Event} event - 监听事件。 * @param {function} callback - 回调函数。 * @param {string} context - 信息。

(event, callback, context)

Source from the content-addressed store, hash-verified

386 * @param {string} context - 信息。
387 */
388 off(event, callback, context) { // eslint-disable-line no-unused-vars
389 var me = this;
390 if (me.renderer) {
391 me.renderer.un(event, callback);
392 } else {
393 this.map.off(event, callback);
394 }
395 return this;
396 }
397
398 /**
399 * @function ThemeLayer.prototype.addTFEvents

Callers 1

removeMethod · 0.45

Calls 1

unMethod · 0.45

Tested by

no test coverage detected