Skip to content

Commit

Permalink
fix _containerPointToPrj
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Mar 14, 2024
1 parent f8a723a commit 5d957e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map/handler/Map.Drag.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ class MapDragHandler extends Handler {
const map = this.target;
const queryCoord = map._queryTerrainInfo(p);
if (queryCoord) {
const prjCoord = map.getProjection().project(queryCoord);
prjCoord.z = queryCoord.z;
const prjCoord = map.getProjection().project(queryCoord.coordinate);
prjCoord.z = queryCoord.altitude;
return prjCoord;
}
return map._containerPointToPrj(p);
Expand Down

0 comments on commit 5d957e6

Please sign in to comment.