发布第一个ArcGISserver的程序

来源:互联网 发布:淘宝友情链接怎么设置 编辑:程序博客网 时间:2024/04/30 15:19

首先要安装arcgisserver 的adf for .net,然后在visual studio 中新建一个web 项目,新建的web项目的类型选择Web Mapping Application。看一下右边窗口栏中新建的这个项目中的所有的文件,找到readme.txt,按照其中的说明,一步步配置,然后右键浏览default.aspx,就可以看到这个web项目了。

附:readme.txt

 
1. Open Default.aspx in Design mode.

2. Right-click the MapResourceManager control and click Edit Resources.

3. Click the Add button to add a MapResourceItem to the collection.
 
4. Click the Definition property and click the ellipsis (...) button.

5. From the Type dropdown list, choose the type of resource that you want to add.

6. Use the ellipses (...) buttons next to the Data Source, Identity, and Resource boxes to display dialogs that will help you specify the information necessary to display the resource.

Note: If you are adding an ArcGIS Local resource, you set the identity by right-clicking the Web site name in the Solution Explorer and clicking Add ArcGIS Identity. The account you specify must have Write access to your Temporary ASP.NET Files directory.

7. If your map will contain more than one resource, repeat steps 3-6. You may need to adjust transparency levels using the MapResourceItems' DisplaySettings properties.

8. When you are finished adding resources and configuring their display settings, click OK to exit the MapResourceItem Collection Editor.

9. Click the OverviewMap control. In the Properties grid, set the OverviewMapResource property to the resource you want to appear in the overview map.

10. Run the application.

For further details about each part of the Web Mapping Application, see the section developing Web applications using the Web ADF?in the ArcGIS Server Developer Help.

-------------------------------------------------------

原创粉丝点击