"Desktop Map App Development" Series Part 10 article.
In the previous articles,Web map creation,ArcGIS Maps SDK for .NET (hereafter, SDK) was used to introduce how to create features such as attribute information display and layer list display. In Part 10, we will introduce the license authentication procedure necessary to distribute apps built with the SDK . Sample code for the features introduced in this article is available on ESRI Japan GitHub .
ArcGIS Maps SDK for .NET License
Have you noticed the watermark "Licensed for Developer Use Only" displayed on the map when running the apps created so far?
This indicates that this app is "only permitted for development and testing purposes." The SDK is a free map app development kit for development and testing, but to actually distribute or use the developed app in business, the app must be license authenticated.The SDK-developed app distribution licenses include four types: Lite, Basic, Standard, and Advanced. 4 types of licenses with different available features. For details on licenses, please refer to the License Page.
The sample apps created in this series that implement features such as displaying Web maps created with ArcGIS Online,
App.xaml.cs
ArcGISRuntimeEnvironment.Initialize(config => config
.UseLicense("[ここに取得した Lite ライセンスキーを設定]")
.UseApiKey("[ここに取得した API キーを設定]")
.ConfigureAuthentication(auth => auth
.UseDefaultChallengeHandler() // Use the default authentication dialog
2. アプリを実行すると、マップ上に表示されていた 「Licensed for Developer Use Only」 と言うウォーターマークが消えてアプリがライセンス認証されたことを確認できます。
以上で SDK で開発したアプリの Lite ライセンスによる認証は完了です。
「デスクトップ地図アプリ開発」シリーズ記事では、SDK を使用して、地図アプリに必要な基本的な機能を実装したデスクトップ アプリを開発する方法を紹介してきました。
SDK では、本シリーズ記事で紹介した以外にも多くの機能が用意されています。米国 Esri 社の GitHub には多くの機能のサンプル コードが公開されていますので、こちらもご活用ください。ぜひ SDK を使ったデスクトップ地図アプリ開発を試しみてください!
関連リンク