File tree Expand file tree Collapse file tree
demo/leaflet/example/igserver/mapservice Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ( {
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 >
Original file line number Diff line number Diff line change 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 ( {
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 >
You can’t perform that action at this time.
0 commit comments