Skip to content

Commit 1883e36

Browse files
committed
Leaflet示例IGServer/地图显示检查及纠正
1 parent fa4b5bd commit 1883e36

2 files changed

Lines changed: 25 additions & 25 deletions

File tree

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!DOCTYPE html>
22
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
4-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
55
<title>获取文档图片信息</title>
6-
<link href="../../css/leaflet/style.css" rel="stylesheet" type="text/css" />
6+
<link href="../../css/leaflet/style.css" rel="stylesheet" type="text/css"/>
77
<script include="json" src="../../libs/zondyclient/include-leaflet-local.js"></script>
88
<script type="text/javascript">
99
//使用严格模式
1010
"use strict";
1111
/**获取文档图片信息
12-
*/
12+
*/
1313
function GetMapInfo() {
1414
//创建获取文档信息服务
1515
var mapInfo = new Zondy.Service.GetMapInfoService({
@@ -25,23 +25,23 @@
2525
}
2626

2727
/**文档信息回调函数
28-
* @param {json对象} data 获取结果对象
29-
*/
28+
* @param {json对象} data 获取结果对象
29+
*/
3030
function getDataSuccess(data) {
31-
if (data != null ) {
31+
if (data !== null) {
3232
//将JSON对象转换成JSON字符串
33-
var formatData = JSON.stringify(data.result);
33+
var formatData = JSON.stringify(data);
3434
//将结果显示在指定的div上
35-
Process(formatData, 1, "resultShow");
35+
Process(formatData, 1, "resultShow");
3636
}
3737
}
3838
</script>
3939
</head>
4040
<body>
41-
<div class="ToolLib" >
42-
<input type="button" class="ButtonLib" value="获取文档图片信息" onclick='GetMapInfo()' />
43-
</div>
44-
<div id="resultShow" >
45-
</div>
41+
<div class="ToolLib">
42+
<input type="button" class="ButtonLib" value="获取文档图片信息" onclick='GetMapInfo()'/>
43+
</div>
44+
<div id="resultShow">
45+
</div>
4646
</body>
4747
</html>
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!DOCTYPE html>
22
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
4-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
55
<title>获取瓦片图片信息</title>
6-
<link href="../../css/leaflet/style.css" rel="stylesheet" type="text/css" />
6+
<link href="../../css/leaflet/style.css" rel="stylesheet" type="text/css"/>
77
<script include="json" src="../../libs/zondyclient/include-leaflet-local.js"></script>
88
<script type="text/javascript">
99
//使用严格模式
1010
"use strict";
1111
/**获取瓦片图片信息
12-
*/
12+
*/
1313
function GetMapInfo() {
1414
//创建获取瓦片信息服务
1515
var mapInfo = new Zondy.Service.GetMapInfoService({
@@ -25,23 +25,23 @@
2525
}
2626

2727
/**瓦片信息回调函数
28-
* @param {json对象} data 获取结果对象
29-
*/
28+
* @param {json对象} data 获取结果对象
29+
*/
3030
function getDataSuccess(data) {
31-
if (data != null) {
31+
if (data !== null) {
3232
//将JSON对象转换成JSON字符串
33-
var formatData = JSON.stringify(data.result);
33+
var formatData = JSON.stringify(data);
3434
//将结果显示在指定的div上
3535
Process(formatData, 1, "resultShow");
3636
}
3737
}
3838
</script>
3939
</head>
4040
<body>
41-
<div class="ToolLib" >
42-
<input type="button" class="ButtonLib" value="获取瓦片图片信息" onclick='GetMapInfo()' />
43-
</div>
44-
<div id="resultShow" >
45-
</div>
41+
<div class="ToolLib">
42+
<input type="button" class="ButtonLib" value="获取瓦片图片信息" onclick='GetMapInfo()'/>
43+
</div>
44+
<div id="resultShow">
45+
</div>
4646
</body>
4747
</html>

0 commit comments

Comments
 (0)