| | |
| | | var that = this; |
| | | // 点击x隐藏面板 |
| | | $('#viewportType').change(function () { |
| | | var value = $(this).val(); |
| | | |
| | | }); |
| | | |
| | | $('#viewportType').click(function () { |
| | | $(".split-select .split-select-option").toggle(); |
| | | }) |
| | | |
| | | $(".split-select .split-select-option li").click(function () { |
| | | |
| | | if ($(this).text() != $('#viewportType span').text()) { |
| | | $('#viewportType span').text($(this).text()) |
| | | var value = $(this).attr('label'); |
| | | switch (value) { |
| | | case "NONE": |
| | | $("#split_up").css("display", "none"); |
| | |
| | | break; |
| | | } |
| | | that.map.scene.multiViewportMode = Cesium.MultiViewportMode[value]; |
| | | }); |
| | | |
| | | $(".split-select .split-select-option").stop().hide(); |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | |
| | | onOpen: function () { |