Skip To Content

Sample code

Not all apps start from a featured template.

You can also create your own new app in AppStudio for ArcGIS. Choose a starter, layout or sample app to have the freedom to build your app to your exact requirements. You will need to write your app using QML, a user interface markup language. This is well documented with samples and help documentation available online at http://doc.qt.io/.

Esri has also provided downloadable samples that you can use to do the following:

  • Run on each desktop platform
  • Create a new app of your own

To view and download these samples, create a new app from one:

  1. Open AppStudio on the desktop.
  2. Sign in with your global account credentials.
  3. Choose New App in the toolbar.
  4. Click on the Samples tab.
  5. Select the sample you want to use, then click Create.

Sample apps are also available in a public Github repo. The main advantage of using Github is visible code maintenance, allowing you to see and track specific changes, while the samples provided in AppStudio are only the most current version. To download and use the samples from Github, complete the following steps:

  1. Download the Github .zip file.
  2. Browse to the folder for the sample you want to use, extract it from the .zip file, and copy it to your AppStudio installation Apps folder. On Windows, for example, the default location is C:\Users\<username>\ArcGIS\AppStudio\Apps.
  3. The app is now present in AppStudio and can be opened or run in the same as any other app.