jsapi 4.x本地部署完 地图控件符号没有加载

360截图20180420091907206.jpg

这是我引入的本地js和样式
 
 

360截图20180420091925318.jpg

这是成功运行后 
地图出来了但是右上角符号没有加载
这是怎么回事
 
而且控制台打印错误:
Access to Font at 'http://localhost:8080/arcgis_js_api/library/4.6/esri/themes/base/icons/fonts/CalciteWebCoreIcons.woff?cu4poq' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
 
这是说跨域吗
360截图20180420092211819.jpg
已邀请:

swaggyP - 网络粉刷匠

赞同来自: 李昫瑄 哩闰桦

http://zhihu.esrichina.com.cn/article/3514,问之前可以搜一下,里面有相同的问题结局方案。在线等有时不如直接去寻找。

哩闰桦

赞同来自:

在线等

coolbas - 地图大数据云平台 www.favxu.com 三维地图云平台 http://www.hapxu.com

赞同来自:

把api直接放到项目里面,<script src="library/4.6/init.js"></script>  init.js dojo.js里面路径改一下

要回复问题请先登录注册