Merge branch 'master' of http://139.196.74.78:10010/r/drone/drone-web-manage
| | |
| | | ([ready, detail]) => { |
| | | if (ready && detail?.location) { |
| | | const [lng, lat] = detail.location |
| | | |
| | | if (!lng || !lat) return |
| | | |
| | | let [newLng, newLat] = DC.CoordTransform.GCJ02ToWGS84(lng, lat) |
| | | window.$viewer?.zoomToPosition(new DC.Position( |
| | | lng, |
| | | lat, |
| | | newLng, |
| | | newLat, |
| | | 1000, |
| | | 0, |
| | | -90, |
| | |
| | | ), () => { |
| | | }) |
| | | |
| | | let point = new DC.Point(new DC.Position(lng, lat)) |
| | | let point = new DC.Point(new DC.Position(newLng, newLat)) |
| | | pointLayer.addOverlay(point) |
| | | } |
| | | }, |