摘要
采用美国Esri公司地理信息系统二次开发工具包ArcGIS API for JavaScript,加载ArcGIS Serve地图服务时,常出现浏览器端不能显示地图的问题,针对该问题,本文从浏览器控制台调试信息入手,采用敏感信息关联法,结合客户端、服务器端和浏览器端各自特点进行了深入分析和研究,得出当使用HTTPS协议访问服务器时,自签名证书不能通过浏览器安全验证是导致问题的主要原因,基于该分析通过采用HTTP协议和禁止浏览器警告的方法解决了问题,并针对三款主流浏览器给出了具体的方法和步骤。
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.
作者
万研新
刘鑫
王作兵
WAN Yanxin;LIU Xin;WANG Zuobin(The Unit 63601 of the PLA,Jiuquan 735000,China)
出处
《软件工程》
2020年第3期49-52,共4页
Software Engineering