arcgis api for javascript4.X本地部署问题

arcgis api for javascript(使用4.2/4.3均出现) 本地部署后发现两个问题:
1.各种系统图标无法显示

无标题2.png

 
2.进行绘制点线面时无法显示,浏览器提示:

无标题3.png

 
看了有人提示在iis中添加
Access-Control-Allow-Credentials:true

Access-Control-Allow-Headers:origin,x-requested-with,content-type

Access-Control-Allow-Methods:POST,GET,OPTIONS

Access-Control-Allow-Origin:*
 
依然无效,提示
The 'Access-Control-Allow-Origin' header contains multiple values 'http://localhost:63342, *', but only one is allowed.
 
以上两种情况使用在线资源就没有问题,有大神能给解释j解释情况吗?
已邀请:

goldenlimit - Major in MIS and minor in GIS, graduated from University of Alabama. GIS is not a simply tool but a way of exploring the unknow

赞同来自: 朱政 swaggyP

你是不是用了Visual Studio去做测试的,你原先放在本地的domain最好设置成跟你测试一样的端口, 要不都是localhost 要不都是localhost:63342
 
我建议你用你电脑的fully qualified domain 不要用localhost
在你下载的本地的JS API 文件下面有一个doc说过 你要用fully qualified domain
 
...//arcgis_js_api/library/arcgis_js_v43_api/arcgis_js_api/library/downloads/index.html

4.3_.JPG

 
 

4.3_.JPG

 

小志

赞同来自:

我也是系统图标不显示,楼主怎么解决?是不是有东西没引?
TIM图片20170821101827.png

渔枫

赞同来自:

能说一下怎么把整个API加入项目里加载吗?
 

要回复问题请先登录注册