egovamap 0.35.21 → 0.35.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +16 -16
- package/egovamap/EGovaScene.js +195 -195
- package/egovamap/GeometryTrans.js +96 -96
- package/egovamap/RingsConvert.js +181 -181
- package/egovamap/coordconvert/CoordConvConfig.js +7 -7
- package/egovamap/egovaglobe.js +12 -0
- package/egovamap/egovamap.css +97 -97
- package/egovamap/egovamapMEx.js +2 -1
- package/egovamap/egovamms.js +566 -566
- package/egovamap/egovamobile.js +1 -0
- package/egovamap/globe.html +34 -34
- package/egovamap/globe.jsp +17 -17
- package/egovamap/map.html +47 -47
- package/egovamap/map.jsp +58 -58
- package/egovamap/mapUtils.js +543 -543
- package/egovamap/mapswich.css +157 -157
- package/egovamap/mapswich.js +165 -165
- package/egovamap/mms.jsp +71 -71
- package/index.js +2 -2
- package/map.html +72 -72
- package/package.json +1 -1
package/egovamap/egovamobile.js
CHANGED
package/egovamap/globe.html
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
-
<html
|
|
3
|
-
style="height: 100%; width: 100%"
|
|
4
|
-
xmlns="http://www.w3.org/1999/xhtml"
|
|
5
|
-
lang="en"
|
|
6
|
-
xml:lang="en"
|
|
7
|
-
>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<title>eGovaGlobe三维</title>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<div id="cesiumContainer" class="fullWindow"></div>
|
|
14
|
-
<div id="loadingIndicator" class="loadingIndicator"></div>
|
|
15
|
-
<script type="text/javascript">
|
|
16
|
-
function getUrlParam(name) {
|
|
17
|
-
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
|
|
18
|
-
var r = window.location.search.substr(1).match(reg); //匹配目标参数
|
|
19
|
-
if (r != null) return unescape(r[2]);
|
|
20
|
-
return null; //返回参数值
|
|
21
|
-
}
|
|
22
|
-
var mainScript = document.createElement("script");
|
|
23
|
-
mainScript.setAttribute("type", "text/javascript");
|
|
24
|
-
mainScript.setAttribute(
|
|
25
|
-
"src",
|
|
26
|
-
getUrlParam("serverURL") + "/library/globe/api/initGlobe.js"
|
|
27
|
-
);
|
|
28
|
-
document
|
|
29
|
-
.getElementsByTagName("head")
|
|
30
|
-
.item(0)
|
|
31
|
-
.appendChild(mainScript);
|
|
32
|
-
</script>
|
|
33
|
-
</body>
|
|
34
|
-
</html>
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html
|
|
3
|
+
style="height: 100%; width: 100%"
|
|
4
|
+
xmlns="http://www.w3.org/1999/xhtml"
|
|
5
|
+
lang="en"
|
|
6
|
+
xml:lang="en"
|
|
7
|
+
>
|
|
8
|
+
<head>
|
|
9
|
+
<meta charset="UTF-8" />
|
|
10
|
+
<title>eGovaGlobe三维</title>
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<div id="cesiumContainer" class="fullWindow"></div>
|
|
14
|
+
<div id="loadingIndicator" class="loadingIndicator"></div>
|
|
15
|
+
<script type="text/javascript">
|
|
16
|
+
function getUrlParam(name) {
|
|
17
|
+
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
|
|
18
|
+
var r = window.location.search.substr(1).match(reg); //匹配目标参数
|
|
19
|
+
if (r != null) return unescape(r[2]);
|
|
20
|
+
return null; //返回参数值
|
|
21
|
+
}
|
|
22
|
+
var mainScript = document.createElement("script");
|
|
23
|
+
mainScript.setAttribute("type", "text/javascript");
|
|
24
|
+
mainScript.setAttribute(
|
|
25
|
+
"src",
|
|
26
|
+
getUrlParam("serverURL") + "/library/globe/api/initGlobe.js"
|
|
27
|
+
);
|
|
28
|
+
document
|
|
29
|
+
.getElementsByTagName("head")
|
|
30
|
+
.item(0)
|
|
31
|
+
.appendChild(mainScript);
|
|
32
|
+
</script>
|
|
33
|
+
</body>
|
|
34
|
+
</html>
|
package/egovamap/globe.jsp
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%> <%@
|
|
2
|
-
include file="/view/include/common/taglibs.jsp"%>
|
|
3
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
4
|
-
<html style="height: 100%; width: 100%">
|
|
5
|
-
<head lang="en">
|
|
6
|
-
<meta charset="UTF-8" />
|
|
7
|
-
<title>eGovaGlobe三维</title>
|
|
8
|
-
<script
|
|
9
|
-
type="text/javascript"
|
|
10
|
-
src="<c:url value='${param.serverURL}/library/globe/api/initGlobe.js'/>"
|
|
11
|
-
></script>
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
<div id="cesiumContainer" class="fullWindow"></div>
|
|
15
|
-
<div id="loadingIndicator" class="loadingIndicator"></div>
|
|
16
|
-
</body>
|
|
17
|
-
</html>
|
|
1
|
+
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%> <%@
|
|
2
|
+
include file="/view/include/common/taglibs.jsp"%>
|
|
3
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
4
|
+
<html style="height: 100%; width: 100%">
|
|
5
|
+
<head lang="en">
|
|
6
|
+
<meta charset="UTF-8" />
|
|
7
|
+
<title>eGovaGlobe三维</title>
|
|
8
|
+
<script
|
|
9
|
+
type="text/javascript"
|
|
10
|
+
src="<c:url value='${param.serverURL}/library/globe/api/initGlobe.js'/>"
|
|
11
|
+
></script>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="cesiumContainer" class="fullWindow"></div>
|
|
15
|
+
<div id="loadingIndicator" class="loadingIndicator"></div>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
package/egovamap/map.html
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
-
<html
|
|
3
|
-
style="height: 100%; width: 100%"
|
|
4
|
-
xmlns="http://www.w3.org/1999/xhtml"
|
|
5
|
-
lang="en"
|
|
6
|
-
xml:lang="en"
|
|
7
|
-
>
|
|
8
|
-
<head>
|
|
9
|
-
<title>eGovaGIS 示例站点</title>
|
|
10
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
11
|
-
</head>
|
|
12
|
-
<body style="padding: 0px; margin: 0px; text-align: left" class="nihilo">
|
|
13
|
-
<div
|
|
14
|
-
id="map"
|
|
15
|
-
style="
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
position: absolute;
|
|
19
|
-
left: 0px;
|
|
20
|
-
top: 0px;
|
|
21
|
-
right: 0px;
|
|
22
|
-
bottom: 0px;
|
|
23
|
-
"
|
|
24
|
-
></div>
|
|
25
|
-
<div id="wait_temp" class="datagrid-mask mymask">
|
|
26
|
-
<div class="datagrid-mask-msg mymask"></div>
|
|
27
|
-
</div>
|
|
28
|
-
<script type="text/javascript">
|
|
29
|
-
function getUrlParam(name) {
|
|
30
|
-
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
|
|
31
|
-
var r = window.location.search.substr(1).match(reg); //匹配目标参数
|
|
32
|
-
if (r != null) return unescape(r[2]);
|
|
33
|
-
return null; //返回参数值
|
|
34
|
-
}
|
|
35
|
-
var mainScript = document.createElement("script");
|
|
36
|
-
mainScript.setAttribute("type", "text/javascript");
|
|
37
|
-
mainScript.setAttribute(
|
|
38
|
-
"src",
|
|
39
|
-
getUrlParam("serverURL") + "/library/egovagis/map/map.js"
|
|
40
|
-
);
|
|
41
|
-
document
|
|
42
|
-
.getElementsByTagName("head")
|
|
43
|
-
.item(0)
|
|
44
|
-
.appendChild(mainScript);
|
|
45
|
-
</script>
|
|
46
|
-
</body>
|
|
47
|
-
</html>
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html
|
|
3
|
+
style="height: 100%; width: 100%"
|
|
4
|
+
xmlns="http://www.w3.org/1999/xhtml"
|
|
5
|
+
lang="en"
|
|
6
|
+
xml:lang="en"
|
|
7
|
+
>
|
|
8
|
+
<head>
|
|
9
|
+
<title>eGovaGIS 示例站点</title>
|
|
10
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
11
|
+
</head>
|
|
12
|
+
<body style="padding: 0px; margin: 0px; text-align: left" class="nihilo">
|
|
13
|
+
<div
|
|
14
|
+
id="map"
|
|
15
|
+
style="
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
position: absolute;
|
|
19
|
+
left: 0px;
|
|
20
|
+
top: 0px;
|
|
21
|
+
right: 0px;
|
|
22
|
+
bottom: 0px;
|
|
23
|
+
"
|
|
24
|
+
></div>
|
|
25
|
+
<div id="wait_temp" class="datagrid-mask mymask">
|
|
26
|
+
<div class="datagrid-mask-msg mymask"></div>
|
|
27
|
+
</div>
|
|
28
|
+
<script type="text/javascript">
|
|
29
|
+
function getUrlParam(name) {
|
|
30
|
+
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
|
|
31
|
+
var r = window.location.search.substr(1).match(reg); //匹配目标参数
|
|
32
|
+
if (r != null) return unescape(r[2]);
|
|
33
|
+
return null; //返回参数值
|
|
34
|
+
}
|
|
35
|
+
var mainScript = document.createElement("script");
|
|
36
|
+
mainScript.setAttribute("type", "text/javascript");
|
|
37
|
+
mainScript.setAttribute(
|
|
38
|
+
"src",
|
|
39
|
+
getUrlParam("serverURL") + "/library/egovagis/map/map.js"
|
|
40
|
+
);
|
|
41
|
+
document
|
|
42
|
+
.getElementsByTagName("head")
|
|
43
|
+
.item(0)
|
|
44
|
+
.appendChild(mainScript);
|
|
45
|
+
</script>
|
|
46
|
+
</body>
|
|
47
|
+
</html>
|
package/egovamap/map.jsp
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%> <%@
|
|
2
|
-
include file="/view/include/common/taglibs.jsp"%>
|
|
3
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
4
|
-
<html
|
|
5
|
-
style="height: 100%; width: 100%"
|
|
6
|
-
xmlns="http://www.w3.org/1999/xhtml"
|
|
7
|
-
lang="en"
|
|
8
|
-
xml:lang="en"
|
|
9
|
-
>
|
|
10
|
-
<head>
|
|
11
|
-
<title>${applicationScope.textSystemTitle}</title>
|
|
12
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
13
|
-
</head>
|
|
14
|
-
<body style="overflow: hidden; padding: 0px; margin: 0px" class="nihilo">
|
|
15
|
-
<div
|
|
16
|
-
id="map"
|
|
17
|
-
style="
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
position: absolute;
|
|
21
|
-
left: 0px;
|
|
22
|
-
top: 0px;
|
|
23
|
-
right: 0px;
|
|
24
|
-
bottom: 0px;
|
|
25
|
-
"
|
|
26
|
-
></div>
|
|
27
|
-
<div id="wait_temp" class="datagrid-mask mymask">
|
|
28
|
-
<div class="datagrid-mask-msg mymask">
|
|
29
|
-
<span>正在加载地图……</span>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
<script>
|
|
33
|
-
/** 获取跟路径 **/
|
|
34
|
-
var getRootPath = function () {
|
|
35
|
-
var src = window.location.href;
|
|
36
|
-
var idxProtocol = src.indexOf("://") + 3;
|
|
37
|
-
var idxEnd =
|
|
38
|
-
src.substr(idxProtocol).indexOf("/") + idxProtocol + 1;
|
|
39
|
-
var originPath = src.substring(0, idxEnd);
|
|
40
|
-
return originPath;
|
|
41
|
-
};
|
|
42
|
-
var serverUrl = "${param.serverURL}";
|
|
43
|
-
if (serverUrl.indexOf("http") != 0) {
|
|
44
|
-
serverUrl = getRootPath() + serverUrl;
|
|
45
|
-
}
|
|
46
|
-
var mainScript = document.createElement("script");
|
|
47
|
-
mainScript.setAttribute("type", "text/javascript");
|
|
48
|
-
mainScript.setAttribute(
|
|
49
|
-
"src",
|
|
50
|
-
serverUrl + "/library/egovagis/map/map.js?bust=${param.bust}"
|
|
51
|
-
);
|
|
52
|
-
document
|
|
53
|
-
.getElementsByTagName("head")
|
|
54
|
-
.item(0)
|
|
55
|
-
.appendChild(mainScript);
|
|
56
|
-
</script>
|
|
57
|
-
</body>
|
|
58
|
-
</html>
|
|
1
|
+
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%> <%@
|
|
2
|
+
include file="/view/include/common/taglibs.jsp"%>
|
|
3
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
4
|
+
<html
|
|
5
|
+
style="height: 100%; width: 100%"
|
|
6
|
+
xmlns="http://www.w3.org/1999/xhtml"
|
|
7
|
+
lang="en"
|
|
8
|
+
xml:lang="en"
|
|
9
|
+
>
|
|
10
|
+
<head>
|
|
11
|
+
<title>${applicationScope.textSystemTitle}</title>
|
|
12
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
13
|
+
</head>
|
|
14
|
+
<body style="overflow: hidden; padding: 0px; margin: 0px" class="nihilo">
|
|
15
|
+
<div
|
|
16
|
+
id="map"
|
|
17
|
+
style="
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
position: absolute;
|
|
21
|
+
left: 0px;
|
|
22
|
+
top: 0px;
|
|
23
|
+
right: 0px;
|
|
24
|
+
bottom: 0px;
|
|
25
|
+
"
|
|
26
|
+
></div>
|
|
27
|
+
<div id="wait_temp" class="datagrid-mask mymask">
|
|
28
|
+
<div class="datagrid-mask-msg mymask">
|
|
29
|
+
<span>正在加载地图……</span>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<script>
|
|
33
|
+
/** 获取跟路径 **/
|
|
34
|
+
var getRootPath = function () {
|
|
35
|
+
var src = window.location.href;
|
|
36
|
+
var idxProtocol = src.indexOf("://") + 3;
|
|
37
|
+
var idxEnd =
|
|
38
|
+
src.substr(idxProtocol).indexOf("/") + idxProtocol + 1;
|
|
39
|
+
var originPath = src.substring(0, idxEnd);
|
|
40
|
+
return originPath;
|
|
41
|
+
};
|
|
42
|
+
var serverUrl = "${param.serverURL}";
|
|
43
|
+
if (serverUrl.indexOf("http") != 0) {
|
|
44
|
+
serverUrl = getRootPath() + serverUrl;
|
|
45
|
+
}
|
|
46
|
+
var mainScript = document.createElement("script");
|
|
47
|
+
mainScript.setAttribute("type", "text/javascript");
|
|
48
|
+
mainScript.setAttribute(
|
|
49
|
+
"src",
|
|
50
|
+
serverUrl + "/library/egovagis/map/map.js?bust=${param.bust}"
|
|
51
|
+
);
|
|
52
|
+
document
|
|
53
|
+
.getElementsByTagName("head")
|
|
54
|
+
.item(0)
|
|
55
|
+
.appendChild(mainScript);
|
|
56
|
+
</script>
|
|
57
|
+
</body>
|
|
58
|
+
</html>
|