zoukankan      html  css  js  c++  java
  • 《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

    点击启动 

  • 相关阅读:
    testng
    RF相关命令
    批处理bat相关
    VIM常用快捷键
    JAVA异常处理
    cucumber+selenium
    webDriver各版本对应
    python源码
    python之logging模块
    pywinauto进阶练习
  • 原文地址:https://www.cnblogs.com/telwanggs/p/6437195.html
Copyright © 2011-2022 走看看