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

Method _bindEvent

src/maplibregl/overlay/MapvLayer.js:207–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 this.renderer.clearData();
206 }
207 _bindEvent() {
208 var map = this.map;
209 map.on('pitchstart', this.pitchStartEvent);
210 map.on('pitchend', this.pitchEndEvent);
211 if (this.options.methods) {
212 if (this.options.methods.click) {
213 map.on('click', this.renderer.clickEvent);
214 }
215 if (this.options.methods.mousemove) {
216 map.on('mousemove', this.renderer.mousemoveEvent);
217 }
218 }
219 }
220
221 _unbindEvent() {
222 let map = this.map;

Callers 1

onAddMethod · 0.95

Calls 1

onMethod · 0.45

Tested by

no test coverage detected