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

Method _bindEvents

src/mapboxgl/mapping/VideoMap.js:262–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260 }
261
262 _bindEvents() {
263 this.videoMapLayer.on('loaded', async ({ originCoordsLeftTop, originCoordsRightBottom, videoWidth, videoHeight }) => {
264 this.originCoordsLeftTop = originCoordsLeftTop;
265 this.originCoordsRightBottom = originCoordsRightBottom;
266 if (this.videoWidth === undefined) {
267 this.videoWidth = videoWidth;
268 }
269 if (this.videoHeight === undefined) {
270 this.videoHeight = videoHeight;
271 }
272 this.coordTransfer = await this._initParameters(this.videoParameters);
273 this._bindMapEventFn = this._bindMapEvent.bind(this);
274 MAP_EVENTS.forEach((eventName) => {
275 this.map.on(eventName, this._bindMapEventFn);
276 });
277 this.fire('load', { map: this.map });
278 });
279 }
280
281 _clearEvents() {
282 MAP_EVENTS.forEach((eventName) => {

Callers 1

_addVideoLayerMethod · 0.95

Calls 5

_initParametersMethod · 0.95
bindMethod · 0.80
forEachMethod · 0.80
onMethod · 0.45
fireMethod · 0.45

Tested by

no test coverage detected