dvgis / dc-sdk

DC-SDK is based on the open source project Cesium for the second development of two three-dimensional WebGis application framework , the framework optimizes the use of Cesium and adds some additional features , designed for developers to quickly build WebGis application.🌎
http://dc.dvgis.cn
Apache License 2.0
826 stars 256 forks source link

缩放地图导致popup到处飘 #143

Closed Japheth1989 closed 1 year ago

Japheth1989 commented 1 year ago

viewer.popup.setContent('

') viewer.popup.setPosition(DC.Transform.transformWGS84ToCartesian(e.overlay.position)) document.getElementById('Popup').appendChild(mountPopup().$el) 为什么这种方式弹出popup在加载地形图后,缩放地图会导致popup到处飘?

cavencj commented 1 year ago

是因为viewer-container 没有设置position样式吗