forked from gsi-cyberjapan/gsimaps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_client.html
63 lines (53 loc) · 1.86 KB
/
index_client.html
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
<!DOCTYPE html>
<html lang="ja">
<head>
<link rel="shortcut icon" href="https://cyberjapandata.gsi.go.jp/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title></title>
<script type="text/javascript">
var vURL = "/*url*/";
var vURL_Site = "/*url_site*/";
var oMap = null;
function Init(){
oMap = document.createElement("iframe");
oMap.style.display = "none";
EvtResize();
oMap.src = vURL + vURL_Site;
oMap.onload = function(){
var oContent = oMap.contentWindow;
var ClientMode = {
baseUrl : null
, location : null
, LayerJS : null
, sakuzuList : null
, queryString : null
};
/*INSERT-SCRIPT*/
oContent.postMessage(ClientMode, vURL);
};
document.body.appendChild(oMap);
};
function EvtResize(){
var w = window.innerWidth;
var h = window.innerHeight;
if(oMap != null){
oMap.style.width = w + "px";
oMap.style.height = h + "px";
if(oMap.style.display == "none"){
oMap.style.display = "block";
}
}
};
window.onload = function(){
document.body.style.margin = "0px";
document.body.style.padding = "0px";
document.body.style.overflow = "hidden";
Init();
}
window.onresize = EvtResize;
</script>
</head>
<body></body>
</html>