Skip to content

Commit

Permalink
修复单独添加s3m图层拉远消失问题
Browse files Browse the repository at this point in the history
  • Loading branch information
supermap123 committed Sep 11, 2023
1 parent 3d898ea commit 09299f6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ function promiseWhen(promiseArray: any[], isSCP?: boolean) {
SuperMap3D.when.all(
promiseArray,
function (layers: any) {
for (let i = 0; i < layers.length; i++) {
layers[i]._visibleDistanceMax = 16000;
}
// for (let i = 0; i < layers.length; i++) {
// layers[i]._visibleDistanceMax = 16000;
// }
if (isSCP) {
viewer.flyTo(layers[0]);
layerStore.updateLayer({ type: "s3m" });
Expand All @@ -244,4 +244,4 @@ function promiseWhen(promiseArray: any[], isSCP?: boolean) {
</script>

<style lang="scss" scoped>
</style>
</style>

0 comments on commit 09299f6

Please sign in to comment.