Skip to content

Commit 59608ba

Browse files
committed
add map.options.query3DTilesOnDragging (default: false)
1 parent adba026 commit 59608ba

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/map/Map.Camera.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,10 @@ Map.include(/** @lends Map.prototype */{
10451045

10461046
//@internal
10471047
queryPrjCoordAtContainerPoint(p) {
1048-
let queryCoord = this._query3DTilesInfo(p)
1048+
let queryCoord;
1049+
if (this.options['query3DTilesOnDragging']) {
1050+
queryCoord = this._query3DTilesInfo(p)
1051+
}
10491052
if (!queryCoord) {
10501053
queryCoord = this._queryTerrainInfo(p);
10511054
}

src/map/handler/Map.Drag.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ Map.mergeOptions({
290290
'dragPan': true,
291291
'dragRotatePitch': true,
292292
'dragRotate': true,
293-
'dragPitch': true
293+
'dragPitch': true,
294+
'query3DTilesOnDragging': false
294295
});
295296

296297
Map.addOnLoadHook('addHandler', 'draggable', MapDragHandler);

0 commit comments

Comments
 (0)