()
| 122 | }; |
| 123 | |
| 124 | private getViewState() { |
| 125 | const { center, zoom } = getMapHighPrecisionState(this.map); |
| 126 | const option = { |
| 127 | center: center, |
| 128 | viewportWidth: this.map.getContainer()!.clientWidth, |
| 129 | viewportHeight: this.map.getContainer()!.clientHeight, |
| 130 | bearing: -this.map.getRotation(), |
| 131 | pitch: this.map.getPitch(), |
| 132 | zoom: zoom - ZOOM_OFFSET, |
| 133 | }; |
| 134 | |
| 135 | return option; |
| 136 | } |
| 137 | |
| 138 | protected creatMapContainer(id: string | HTMLDivElement) { |
| 139 | const wrapper = super.creatMapContainer(id); |
no test coverage detected