| | |
| | | el.addClass(className || '') |
| | | |
| | | $('#mobile-map_popup_content').append(el) |
| | | // let time; |
| | | // function cons(e) { |
| | | // time = setTimeout(() => { |
| | | // console.log(e) |
| | | // console.log(e.sun._drawingBufferHeight) |
| | | // console.log("roll: ", e.camera.roll) |
| | | // console.log("pitch: ", e.camera.pitch) |
| | | // console.log("heading: ", e.camera.heading) |
| | | // clearTimeout(time); |
| | | // time = ""; |
| | | // }, 2000); |
| | | // } |
| | | |
| | | this._viewer.scene.postRender.addEventListener(function () { |
| | | this._viewer.scene.postRender.addEventListener(function (e) { |
| | | if (!self.isOpen) { |
| | | return; |
| | | } |
| | |
| | | self._viewer.scene, |
| | | position |
| | | ) |
| | | |
| | | // time || cons(e); |
| | | self.positionPopUp(windowCoord, id) |
| | | }) |
| | | } |
| | |
| | | if (!windowCoord) { |
| | | return; |
| | | } |
| | | // console.log(windowCoord) |
| | | const wx = document.getElementById('app').clientWidth; |
| | | const x = windowCoord.x - (wx / 100 * 35); |
| | | const y = windowCoord.y - document.getElementById(id).offsetHeight - 15; |