arcGIS 新手:从 ADF 应用程序访问地图
我是 arcGIS 新手,我正在尝试可视化我使用 arcMap 创建的地图。
地图(test.mxd)有一个包含一些数据(一些彩色方块)的图层,我使用 arcGIS Server Manager 选择“发布资源”通过服务发布了它,
所以现在我正在运行一个简单的地图服务。
我尝试使用 .NET 应用程序的 ADF 示例来显示地图,因此如果我编写
<esri:MapResourceItems>
<esri:MapResourceItem Definition="<Definition DataSourceDefinition="http://server.arcgisonline.com/arcgis/services" DataSourceType="ArcGIS Server Internet" Identity="To set, right-click project and 'Add ArcGIS Identity'" ResourceDefinition="(default)@ESRI_Imagery_World_2D" />"
DisplaySettings="visible=True:transparency=0:mime=True:imgFormat=PNG8:height=100:width=100:dpi=96:color=:transbg=False:displayInToc=True:dynamicTiling="
LayerDefinitions="" Name="MapResourceItem0" />
</ResourceItems>
DataSourceDefinition 和 ResourceDefinition 在线的位置,我就可以可视化地图。
如果我使用我的代码:(
<esri:MapResourceItem Definition="<Definition DataSourceDefinition="localhost/arcgis/services/test/" DataSourceType="ArcGIS Server Local" Identity="To set, right-click project and 'Add ArcGIS Identity'" ResourceDefinition="Layers@test" />"
DisplaySettings="visible=True:transparency=0:mime=True:imgFormat=PNG8:height=100:width=100:dpi=96:color=:transbg=False:displayInToc=True:dynamicTiling="
LayerDefinitions="" Name="MapResourceItem0" />
我自己编写了 DataSourceDefinition 和 ResourceDefinition,只是猜测它们),这将不起作用,并且地图 div 是空的。我可以看到平移拖动光标,但数据完全是空的。
也许地图已加载,但我看不到任何东西,因为我只有一个图层,后面没有栅格地图?
这应该是一个简单的问题,但我对 arcGIS 完全陌生,找不到解释如何执行此操作的内容
I'm an arcGIS newbie and I'm trying to visualize a map I've created with arcMap.
The map (test.mxd) has a single layer with some data (some colored squares) and I published it with a service using the arcGIS Server Manager choosing "Publish resource"
So now I have a simple map service running.
Using the ADF sample for .NET applications I'm trying to display the map, thus if I write
<esri:MapResourceItems>
<esri:MapResourceItem Definition="<Definition DataSourceDefinition="http://server.arcgisonline.com/arcgis/services" DataSourceType="ArcGIS Server Internet" Identity="To set, right-click project and 'Add ArcGIS Identity'" ResourceDefinition="(default)@ESRI_Imagery_World_2D" />"
DisplaySettings="visible=True:transparency=0:mime=True:imgFormat=PNG8:height=100:width=100:dpi=96:color=:transbg=False:displayInToc=True:dynamicTiling="
LayerDefinitions="" Name="MapResourceItem0" />
</ResourceItems>
where DataSourceDefinition and ResourceDefinition are online, I can visualize the map.
If I use my code:
<esri:MapResourceItem Definition="<Definition DataSourceDefinition="localhost/arcgis/services/test/" DataSourceType="ArcGIS Server Local" Identity="To set, right-click project and 'Add ArcGIS Identity'" ResourceDefinition="Layers@test" />"
DisplaySettings="visible=True:transparency=0:mime=True:imgFormat=PNG8:height=100:width=100:dpi=96:color=:transbg=False:displayInToc=True:dynamicTiling="
LayerDefinitions="" Name="MapResourceItem0" />
(I've written DataSourceDefinition and ResourceDefinition by myself just guessing them), this won't work and the map div is empty. I can see the pan dragging cursor, but the data is totally empty.
Maybe the map got loaded but I can't see anything because I have a single layer and not a raster map behind?
This should be a simple problem, but I'm totally new to arcGIS and can't find something explaining how to do this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
弄清楚:我需要使用服务管理器添加 WMS 可查询服务
Figured out: I needed to use the service manager to add a WMS querable service