()
| 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) => { |
no test coverage detected