| widgets/SplitScreen/Widget.html | ●●●●● patch | view | raw | blame | history | |
| widgets/SplitScreen/Widget.js | ●●●●● patch | view | raw | blame | history | |
| widgets/SplitScreen/css/style.css | ●●●●● patch | view | raw | blame | history |
widgets/SplitScreen/Widget.html
@@ -10,8 +10,10 @@ <button id="viewportType"> <button id="viewportType" value="NONE"> <span> 不使用分屏 </span> <i class="layui-icon">  </i> widgets/SplitScreen/Widget.js
@@ -20,7 +20,18 @@ 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"); @@ -87,7 +98,11 @@ break; } that.map.scene.multiViewportMode = Cesium.MultiViewportMode[value]; }); $(".split-select .split-select-option").stop().hide(); } }) }, onOpen: function () { widgets/SplitScreen/css/style.css
@@ -40,7 +40,7 @@ width: 160px; height: 30px; background: #fff; border-radius: 10px; border-radius: 5px; font-size: 14px; padding: 0 6px; text-align: left;