Merge branch 'master' of http://www.shsening.com:10000/r/template/shanghai
| | |
| | | id="btnStartDHText">开始回放</span></button> |
| | | </td> |
| | | <td> |
| | | <button type="button" id="btnSuspendDH" class="btn btn-primary" style="width:100px;"><span |
| | | id="btnSuspendDHText">暂停回放</span></button> |
| | | </td> |
| | | <td> |
| | | <span class="span_sjgs"><input class="sjgs" id="checkbox_sjgs" type="checkbox">视角跟随</span> |
| | | </td> |
| | | </tr> |
| | |
| | | } |
| | | }); |
| | | |
| | | $("#btnSuspendDH") |
| | | .off("click") |
| | | .on("click", function () { |
| | | if ($("#btnSuspendDHText").text() == "暂停回放") { |
| | | thisWidget.pauseReplay(); |
| | | $("#btnSuspendDHText").text("继续回放"); |
| | | $("#checkbox_sjgs").show(); |
| | | } else { |
| | | $("#btnSuspendDHText").text("暂停回放"); |
| | | thisWidget.ContinueReplay(); |
| | | } |
| | | }); |
| | | |
| | | $("#checkbox_sjgs") |
| | | .off("click") |
| | | .on("click", function () { |
| | |
| | | this.map.clock.shouldAnimate = false; |
| | | } |
| | | |
| | | ContinueReplay() { |
| | | // 继续回放 |
| | | this.map.clock.shouldAnimate = true; |
| | | } |
| | | |
| | | //取消当前的视角跟随 |
| | | removeTrack() { |
| | | if (this.nowFline) { |