摘 要: 采用美国Esri公司地理信息系统二次开发工具包ArcGIS API for JavaScript,加载ArcGIS Serve地图服 务时,常出现浏览器端不能显示地图的问题,针对该问题,本文从浏览器控制台调试信息入手,采用敏感信息关联法, 结合客户端、服务器端和浏览器端各自特点进行了深入分析和研究,得出当使用HTTPS协议访问服务器时,自签名证 书不能通过浏览器安全验证是导致问题的主要原因,基于该分析通过采用HTTP协议和禁止浏览器警告的方法解决了问 题,并针对三款主流浏览器给出了具体的方法和步骤。 |
关键词: Esri;ArcGIS;地理信息系统;JavaScript;地图 |
中图分类号: TP274
文献标识码: A
|
|
The Reasons for the ArcGIS API For JavaScript cannot Load ArcGIS Server Map Service and the Countermeasures |
WAN Yanxin,LIU Xin,WANG Zuobin
|
( The Unit 63601 of the PLA, Jiuquan 735000, China)
|
Abstract: When adopting the ArcGIS API For Javascript,which is the second development kit of the geographic information system from American ESRI company,to load the ArcGIS Server map service,the problem that the browser cannot display the map often occurs.In order to solve this problem,this paper starts with the debugging information of browser console,uses the sensitive information association method,considers the characteristics of the client,the server and the browser,and conducts in-depth analysis and studies.It is concluded that when using the HTTPS protocol to access the server,the main cause for the problem is that the self-signed certification cannot pass the browser security verification.Based on this analysis,this paper solved the problem by using the HTTP protocol and forbidding browser warning.Specific methods and steps are given for three mainstream browsers. |
Keywords: Esri;ArcGIS;geographic information system;javascript;map |