MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / on

Method on

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

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

(event, callback, context)

Source from the content-addressed store, hash-verified

370 * @param {string} context - 信息。
371 */
372 on(event, callback, context) { // eslint-disable-line no-unused-vars
373 if (this.renderer) {
374 this.renderer.on(event, callback);
375 } else {
376 this.map.on(event, callback);
377 }
378 return this;
379 }
380
381 /**
382 * @function ThemeLayer.prototype.off

Callers 4

removeMethod · 0.45
_addHighLightLayerMethod · 0.45
onAddMethod · 0.45
addTFEventsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected