ArcGIS Runtime SDK for WPF 初始化

安装包

管理nuget包

Esri.ArcGISRuntime.WPF

也许还需要

Esri.ArcGISRuntime.Hydrography
Esri.ArcGISRuntime.LocalServices
...

初始化arcgis

/// <summary>
/// App.xaml 的交互逻辑
/// </summary>
public partial class App : Application
{
    private void Application_Startup(object sender, StartupEventArgs e)
    {
        try
        {
            Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.Initialize();
        }
        catch (Exception ex)
        {
            // Show the message and shut down
            MessageBox.Show(string.Format("There was an error that prevented initializing the runtime. {0}", ex.Message));
            Current.Shutdown();
        }
    }
}

即可正常使用ArcGIS Runtime SDK了

上一篇:地图底图的类型——MapView,SceneView


下一篇:地理信息系统(GIS)系列——ArcGIS中的各种图层