(map)
| 346 | }; |
| 347 | |
| 348 | function _getMapOffset(map) { |
| 349 | const offset = map.containerPointToLayerPoint([0, 0]); |
| 350 | const mapOffset = [offset.x || 0, offset.y || 0]; |
| 351 | return mapOffset; |
| 352 | } |
| 353 | |
| 354 | function _setCanvasPosition(map, viewportRoot) { |
| 355 | const mapOffset = _getMapOffset(map); |
no outgoing calls
no test coverage detected