基于 ArgGIS for JavaScript 的示例
环境: Arcgis v3.19
下载项目代码部署到如下位置 (此处以 Tomcat 为例)
<apache_tomcat_home>\webapps\arcgis\3.19\
在文本编辑器中打开 <apache_tomcat_home>\webapps\arcgis\3.19\init.js, 然后搜索 'ditu.fuwu.io:7020/arcgis/3.19/', 将值替换为 "<your_server>:8080/arcgis/3.19/"
在文本编辑器中打开 <apache_tomcat_home>\webapps\arcgis\3.19\dojo\dojo.js, 然后搜索 'ditu.fuwu.io:7020/arcgis/3.19/', 将值替换为 "<your_server>:8080/arcgis/3.19/"
样式引用
<link rel="stylesheet" href="http://<your_server>:8080/arcgis/3.19/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://<your_server>:8080/arcgis/3.19/esri/css/esri.css">
脚本引用
<script src="http://<your_server>:8080/arcgis/3.19/init.js" data-dojo-config="locale:'zh-cn'"></script>
如果部署成功 可以在 http://<your_server>:8080/arcgis/3.19/index.html 看看示例