| | |
| | | import * as Cesium from 'cesium' |
| | | import { MapTooltip } from '../Tooltip' |
| | | import { MapTooltip } from '@ztzf/utils' |
| | | import { ToolBase } from '../ToolBase' |
| | | import { getBoundsFromLngLats, rectanglePositionsFromBounds } from '../shapeUtils' |
| | | |
| | |
| | | } |
| | | |
| | | getCornerCartographics() { |
| | | return rectanglePositionsFromBounds(this.bounds).map(position => |
| | | Cesium.Cartographic.fromCartesian(position) |
| | | ) |
| | | return rectanglePositionsFromBounds(this.bounds).map(position => Cesium.Cartographic.fromCartesian(position)) |
| | | } |
| | | |
| | | getPositionFromScreen(screenPosition) { |