shuishen
2021-06-04 022acc43fee86a64020fff06f9bb6ea9f78a6785
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 () {