《ArcGIS Runtime SDK for .NET开发笔记》 --Hello Word

这里我们将创建第一个用于显示地图的APP。

1.新建一个WPF程序

首先我们打开Visual Studio,选择新建项目。 
选择已安装——模板——Windows桌面——WPF应用程序 

2.添加Runtime SDK for .NET的引用

在解决方案资源管理器中右键引用——添加引用

 
在程序集——扩展下选择Esri.ArcGISRuntime的类库 
 
点击确定按钮添加引用类库成功。

3.添加地图到程序中

在xaml文件中添加esri标签 
xmlns:esri=”http://schemas.esri.com/arcgis/runtime/2013” 
 
在xaml文件中添加MapView

<esri:MapView x:Name="MyMapView">
   <esri:Map x:Name="MyMap">
         <esri:ArcGISTiledMapServiceLayer ID="BaseMap"    ServiceUri="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
   </esri:Map>
</esri:MapView>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5

点击启动 

posted @ 2017-02-24 09:47  疯子110  阅读(1427)  评论(0编辑  收藏  举报