2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.w3.org/1999/xhtml" layout:decorator="MasterPage/Layout">
<head>
    <meta charset="UTF-8" />
    <title th:text="${systemName}"></title>
    <script th:inline="javascript">
        /*<![CDATA[*/
        var gisPortal = [[${gisPortal}]];
        $(function () {
            var h = window.innerHeight;
            var w = window.innerWidth;
            $("#ZhiTuFrame").height(h - 92);
            $("#ZhiTuFrame").width(w);
            $("#ZhiTuFrame").attr("src", gisPortal + "visualMapViewer.html");
 
            window.onresize = autoResize;
        });
 
        window.addEventListener('message',function(e){
            if(e.data == true) {
                $("#TopMenu").css("display", "none");
                $("#bts_pagebody").css("margin-top", "0px");
            } else {
                $("#TopMenu").css("display", "");
                $("#bts_pagebody").css("margin-top", "92px");
            }
            autoResize(true);
        },false);
 
        //界面大小自适应
        function autoResize(flag) {
            var h = window.innerHeight;
            if($("#TopMenu").css("display") == "none") {
                if(flag == true) {
                    $("#ZhiTuFrame").height(h);
                } else {
                    $("#ZhiTuFrame").height(h - 6);
                }
            } else {
                $("#ZhiTuFrame").height(h - 92);
            }
        }
 
        function fullScreen() {
            var docElm = document.documentElement;
            //W3C
            if (docElm.requestFullscreen) {
                docElm.requestFullscreen();
            }
            //FireFox
            else if (docElm.mozRequestFullScreen) {
                docElm.mozRequestFullScreen();
            }
            //Chrome等
            else if (docElm.webkitRequestFullScreen) {
                docElm.webkitRequestFullScreen();
            }
            //IE11
            else if (docElm.msRequestFullscreen) {
                docElm.msRequestFullscreen();
            }
        }
 
        function outScreen() {
            if(document.exitFullscreen) {
                document.exitFullscreen();
            } else if(document.mozCancelFullScreen) {
                document.mozCancelFullScreen();
            } else if(document.webkitCancelFullScreen) {
                document.webkitCancelFullScreen();
            } else if(document.msExitFullscreen) {
                document.msExitFullscreen();
            }
        }
        /*]]>*/
    </script>
    <style>
        #bts_pagebody {
            display: flex!important;
        }
    </style>
</head>
<body>
<div layout:fragment="content">
    <iframe id="ZhiTuFrame" name="ZhiTuFrame" src="" width="100%" scrolling="no" style="border: 0;"></iframe>
</div>
</body>
</html>