首页 > Windows开发 > 详细

ArcGIS Runtime SDK for WPF 初始化

时间:2019-02-05 11:08:33      阅读:377      评论:0      收藏:0      [点我收藏+]

安装包

管理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了

ArcGIS Runtime SDK for WPF 初始化

原文:https://www.cnblogs.com/Lulus/p/10352563.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!