Get started | 您所在的位置:网站首页 › simulationparameters在哪 › Get started |
There are a number of ways to get started to develop with the ArcGIS Maps SDK for .NET. If you are new, follow the steps below to get started with .NET and Visual Studio. NoteBefore proceeding, go to System requirements to ensure your machine has the required hardware and correct versions for software dependencies. 1. Sign up for an accountTo use the ArcGIS Maps SDK for .NET to access content, services, or an organization, you need an ArcGIS Location Platform account, ArcGIS Online account, or ArcGIS Enterprise account. The type of account, user type, and role you need depends on the resource you need to access and the operations you wish to undertake. If you do not have an account, select one of the options below: Get a free account for ArcGIS Location Platform Get a free trial and account for ArcGIS Online Tip To get an account for an existing ArcGIS organization contact your ArcGIS Online or ArcGIS Enterprise administrator. 2. Get the SDK and dependenciesTo develop apps using ArcGIS Maps SDK for .NET, you need to: Ensure that your development environment meets the system requirements. Install the SDK and its dependencies. ArcGIS Maps SDK for .NET NuGet packages are hosted on NuGet.org. To get started using NuGet to consume packages in Visual Studio, see Install and use a package in Visual Studio (Windows) or Install and use a package in Visual Studio (Mac) in the Microsoft documentation. Optionally, install the toolkit and project templates. ArcGIS Maps SDK for .NET Toolkit contains user interface (UI) controls and components to use out-of-the-box or customize for your apps. You can include the Toolkit in your project as a NuGet package or get the source code from the GitHub repository and build the Toolkit yourself. The ArcGIS Maps SDK for .NET Project Templates extension for Visual Studio (Windows) provides application project templates for Android, iOS, and Windows. The project templates reference the appropriate NuGet packages for each platform and use a Model-View-ViewModel (MVVM) design pattern. For more information about working with extensions see the topic Manage extensions for Visual Studio in the Microsoft documentation. The Esri.ArcGISRuntime.ProjectTemplates NuGet package published on nuget.org provides application project templates for .NET MAUI (iOS, Android, WinUI), WPF, WinUI and UWP. Since the Visual Studio extension described above is only for Windows operating system, you can use this method to make templates available in Visual Studio for Mac. See the Install and set up topic for more information. 3. Get an access tokenTo access secure ArcGIS services and resources, you need to use an access token. The easiest way to get started is to obtain an access token from an API Key. Learn more about access tokens and authentication in Security and authentication. Create an API key Implement user authentication 4. Create your first mapping applicationFollow the step-by-step instructions in the Display a map tutorial to create your first mapping application. The following code shows how you can create and display a map. Use dark colors for code blocksCopy1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 // Provide an access token for your app (usually when the app starts). Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.ApiKey = "YOUR_ACCESS_TOKEN"; // Create a map with an ArcGIS basemap. var map = new Map(BasemapStyle.ArcGISNavigation); // Add the map to a map view control defined on the page. MyMapView.Map = map;Once you are done building your application, make sure to license it before deploying to production. For more information, see License and deployment topic for details. 5. Follow the tutorialsGo to the tutorials to create and run applications to perform different operations. Display a web mapDisplay a preauthored map stored as an ArcGIS Online portal item. Add a point, line, and polygonLearn how to display a point, line, and polygon graphic in a map. Access services with OAuth credentials
Learn how to implement user authentication to access a secure ArcGIS service with OAuth credentials. 6. Explore the samplesGo to the samples to learn how to perform more tasks with the API. OAuthAuthenticate with ArcGIS Online (or ArcGIS Enterprise) using OAuth2 to access secured resources. Feature layer queryFind features in a feature table which match an SQL query. Add dynamic entity layerDisplay data from an ArcGIS stream service using a dynamic entity layer. Find routeDisplay directions for a route between two points. Next steps OverviewLearn about the API and developer resources.Key featuresDiscover the capabilities of the API.Get startedGet started using the API. |
CopyRight 2018-2019 实验室设备网 版权所有 |