使用 ArcGIS API for JavaScript 时如何使用外部数据

How to use external data when using ArcGIS API for JavaScript

我正在构建一个仪表板(网络应用程序)来显示滑坡相关数据。我有一些外部地图(坡度、排水等)。我想在网络应用程序中将它们显示为图层。我找不到这样做的正确方法。有人可以提出解决方案吗?

您在评论中提到您正在尝试映射 Shapefile。如果您想从 JavaScript API 将 Shapefile 加载到地图中,sample here 会向您展示如何将该文件加载到地图中。

如果您想将其添加到您的 Web Map so that you can view it in an app, you can do that too, just go to the Arcgis.com Map page and click Add > Layer from File (more info)。