Skip to content

Commit 566c237

Browse files
修复threelayer 建筑物示例 review by luox
1 parent 7a351d6 commit 566c237

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/mapboxgl/threejsLayer_buildings.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
.setTargetLayer(threeLayer)
9494
.setPosition([104.071092, 30.560304])
9595
.start();
96+
setTimeout(function() {
97+
threeLayer.renderScene();
98+
}, 1000);
9699
}
97100

98101
//均匀光照,与相机位置同步

examples/maplibregl/threejsLayer_buildings.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@
9494
.setTargetLayer(threeLayer)
9595
.setPosition([104.071092, 30.560304])
9696
.start();
97+
setTimeout(function() {
98+
threeLayer.renderScene();
99+
}, 1000);
97100
}
98101

99102
//均匀光照,与相机位置同步

0 commit comments

Comments
 (0)