* @function ThemeLayer.prototype.on * @description 添加专题要素事件监听。 * @param {Event} event - 监听事件。 * @param {function} callback - 回调函数。 * @param {string} context - 信息。
(event, callback, context)
| 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 |
no outgoing calls
no test coverage detected