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

Method bindEvent

src/mapboxgl/overlay/MapvLayer.js:224–234  ·  view source on GitHub ↗

* @function MapvRenderer.prototype.bindEvent * @description 绑定事件。

()

Source from the content-addressed store, hash-verified

222 * @description 绑定事件。
223 */
224 bindEvent() {
225 var map = this.map;
226 if (this.mapVOptions.methods) {
227 if (this.mapVOptions.methods.click) {
228 map.on('click', this.renderer.clickEvent);
229 }
230 if (this.mapVOptions.methods.mousemove) {
231 map.on('mousemove', this.renderer.mousemoveEvent);
232 }
233 }
234 }
235
236 /**
237 * @function MapvRenderer.prototype.unbindEvent

Callers 11

onAddMethod · 0.95
mapv.min.jsFile · 0.45
heFunction · 0.45
beFunction · 0.45
SeFunction · 0.45
zeFunction · 0.45
mapv.jsFile · 0.45
LayerFunction · 0.45
MapVRendererFunction · 0.45
MapVLayerFunction · 0.45
eFunction · 0.45

Calls 1

onMethod · 0.45

Tested by

no test coverage detected