Skip to content

Commit f68f471

Browse files
committed
优化单体模型示例
1 parent 913893e commit f68f471

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • public/codes/3d/3dtiles/view-monomer

public/codes/3d/3dtiles/view-monomer/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ function AddSingleRoom() {
171171
e.target.setUniform("polygonFill", [1, 1, 1, 1]);
172172
}
173173
});
174-
175-
roomMarker.setInfoWindow({
174+
const tooltip = new maptalks.ui.InfoWindow({
176175
content: "点击箭头所指楼层",
177-
dx: -50
178-
});
179-
roomMarker.openInfoWindow();
176+
autoOpenOn: null
177+
}).addTo(map);
178+
const coord = new maptalks.Coordinate([-73.88634275279406, 40.689805184739356, 50]);
179+
tooltip.show(coord);
180180
}
181181

182182
const sceneConfig = {

0 commit comments

Comments
 (0)