Skip to content
Sample code for ArcGIS Runtime SDK for .NET – UWP, WPF, Xamarin.Android, Xamarin.iOS, and Xamarin.Forms
Branch: master
Clone or download
nCastle1 Fix iOS memory issues by following viewcontroller lifecycle best prac…
…tice (#627)

* Implement Scene symbols sample for all platforms

* Implement scene properties expressions - all platforms

* Terrain exaggeration

This implements the terrain exaggeration sample on all platforms.

* Change atmosphere effect

This PR implements change atmosphere effect for all platforms.

* Update with PR feedback

* Changes per PR feedback

* Updates to terrain exaggeration

* Update scene symbols sample

* Update camera used in scene symbols sample

* Fix crash in forms viewer - iOS only

* New sample: Delete features (#583)

Implements the delete features sample on all platforms.

* Remove unnecessary config from sketch on map (#581)

* Set the AppDataPath for local server in all LS samples (#582)

* Set the AppDataPath for local server in all LS samples

* Improvements to setting data path

* New sample: Add features (#586)

* Implement add features sample - all platforms

* Changes from review

* New sample: Update geometries (#584)

* Scaffold and initial implementation for Update Geometries

* iOS and Forms implementations

* Android implementation

* Update readme

* Fixes issue with geometries over the date line

* Update screenshots

* Changes per review

* New sample: update attributes (#585)

* Initial implementation WPF

* UWP implementation

* Forms and UWP implementations

* iOS implementation

* Android implementation

* Changes per review

* Changes per review

* Merges master into v.next

This merge updates nearly all iOS samples to use AutoLayout and account for notches/rotation.

* Update List related features for iPhone X

Note: also improves behavior when rotating device into landscape

* Update Buffer list for iPhone X

* Update buffer sample for iPhone X

* Update statistical query for iPhone X

* Fix issue in buffer list

* Update Find route for iPhone X

* Update TakeScreenshot for better use of AutoLayout

* Update display a grid for iPhone X

* Update Open map URL for iPhone X

* Update manage bookmarks for iPhone X

* Set view background color when using toolbars

Toolbars are slightly transparent, so if there is a black background, the toolbar looks weird.

* Update closest facility (static) to not use navigationcontroller toolbar

* Update change basemap for iPhone X

* Update Author map for iPhone X

* Update display device location for iPhone X

* Raster rendering rule updated for iPhone X

* Update feature layer definition expression for iPhone X

* Update export tiles for iPhone X

* Update change sublayer visibility for iPhone X

* Update change sublayer renderer for iPhone X

* Update change feature layer renderer for iPhone X

* Update Vector tiled layer URL for iPhone X

* Update change ENC display settings for iPhone X

* Update cut geometry for iPhone X

* Update convex hull list for iPhone X

* Update create convex hull for iPhone X

* Remove unnecessary code from Access load status

* Update clip geometries for iPhone X

* Update symbolize shapefile for iPhone X

* Update generate geodatabase for iPhone X

* Update feature layer query for iPhone X

* Update viewshed camera for iPhone X

* Update query feature count and extent for iPhone X

* Update distance measure analysis for iPhone X

* Update feature layer rendering mode (map) for iPhone X

* Update feature layer rendering mode (scene) for iPhone X

* Update List geodatabase versions for iPhone X

* Update statistical query group and sort for iPhone X

* Update Find place for iPhone X

* Update change stretch renderer for iPhone X

* Update Edit and sync features for iPhone X

* Update Animate 3D graphic for iPhone X

* Update Search a portal for maps for iPhone X

* Update Densify and generalize for iPhone X

* Update List transformations for iPhone X

* Update Geodatabase transactions for iPhone X

* Update Format coordinates for iPhone X

* First attempt at viewshed location

* Update viewshed location for iPhone X

* Update Raster RGB renderer for iPhone X

* Update Raster hillshade for iPhone X

* Update Blend renderer for iPhone X

* Update Generate offline map for iPhone X

* Update WMS service catalog for iPhone X

* Fix misc. details

* Fix issue with statistical query

* Update token secured challenge for iPhone X

* Automated clean up and refactoring - iOS

* Rearrange sample code to follow common pattern

* Misc. tweaks and improvements

* Changes from review

* New sample: manage operational layers (#587)

* Initial implementation - WPF

* UWP implementation

* Forms implementation

* First attempt at iOS implementation

* Fix manage operational layers - iOS

* Android implementation and final improvements

* Changes for review feedback

* Fix crash

* Update the readmes and comments.

* Sample improvements: Edit and sync features, Generate geodatabase (#590)

* Improvements to Generate Geodatabase and Edit and sync features

Now, when you start geodatabase generation, the extent indicator will become fixed in place.

Also, only point features will be shown in Edit and sync features. Tapping where there is no feature will not update the help text.

* Screenshot and readme updates

* New sample: OpenStreetMap layer (#591)

* New sample: OpenStreetMap layer

* Readme updates and forms readme view improvements

* Fix readme display iOS

* New sample: Project (#592)

* New sample: Edit feature attachments (#588)

* Initial implementation - WPF

* UWP implementation

* Forms implementation

* iOS implementation

* Android implementation

* Comments & code clean up

* Comments and cleanup - ios

* Changes per review

* Changes from review

* Additional refinement from testing

* New sample: reverse geocode (#593)

* New sample: reverse geocode

* Fix readme & normalize geometry for IDL

* Better handle situations errors in geocode

* New sample: offline geocode (#594)

* New sample: offline geocode

* Fixes issue with UWP and updates readme

* Improve handling of no geocode results

* Use explicit type instead of var

* New sample: Mobile map search and route (#595)

* Implementations for UWP, WPF, and Forms

* iOS implementation

* Android implementation

* Readme updates

* Improve no results error message

* Fix typo in help text, retake affected screenshots

* New sample: Dictionary renderer with graphics overlay (#596)

* Update packages to 100.5 to enable LS testing (#580)

* Update packages to 100.5 to enable LS testing

* Update all packages to 100.5

* Remove x86 support for iPhone simulator

Required due to changes in support at Runtime 100.5

* deployment updates

* Remove reference to metadata.json (#597)

* New sample: Integrated mesh layer (#598)

* Update packages to 100.5 to enable LS testing

* Update all packages to 100.5

* New sample: Add an integrated mesh layer

* Fix iOS build issues (#602)

* New sample: view point cloud data offline (#599)

* Update packages to 100.5 to enable LS testing

* Update all packages to 100.5

* New sample: view point cloud data offline

* Migrated WPF project to PackageReference. (#608)

* Sample updates to fix SSG build issues (#609)

* New sample: Create terrain surface from a tile package (#604)

* New sample: Create terrain surface from a local raster (#605)

* Map reference scale implementation (#601)

* New sample: Open mobile scene package (#603)

* New sample: Open mobile scene package

* Fix error in unpack path

* Changes from review

* Update MMPK sample to show unpack workflow (#607)

Note that some comments are updated as there was an older sample made before the most recent style guide and I wanted to keep things consistent.

* Fix UWP & Android UI issues (#610)

* Fix UWP UI issue

* Stop android samples from reloading on rotation

* Increased minSdkVersion to match minimum system requirement and updated AndroidSupportedAbis to remove armeabi and add arm64. (#614)

* New samples: WFS (#600)

* Update packages to 100.5 to enable LS testing

* Update all packages to 100.5

* WPF implementation of Browse WFS for layers

* Display WFS - WPF implementation

* Implement XML query sample - WPF

* Update WFS sample to zoom into data set

* Most cross-platform implementation

* Further implementation updates

* Updates to WFS - WPF

* Data updates to WFS samples

* Readme updates

* code clean up

* Fix issue in display wfs error handling

* Update screenshots for new data

* Update WFS samples

* Fix iOS error message

* Update WFS samples for API change

* Updated XML query design

* Updates from review

* Changes from review

* New sample: Generate offline map with overrides (#606)

* Progress towards generate an offline map with overrides

* Android implementation

* UI improvements all platforms

* Changes from review

* Readme updates

Also adds readme to original generate offline map sample, since they were apparently missing on Android and iOS.

* New sample: Add point scene layer (#612)

* New sample: view content beneath surface (#611)

* New sample: view content beneath surface

* Add mention of properties to code

* Update versions ahead of U5 (#615)

* Update package versions & project config

* Require sdk21 on Android - needed for TLS 1.2+

* New sample: Display KML tour (#613)

* New sample: Display KML tour

* Update for sample design change

* Fix issues from last commit

* Readme update

* Fixes issue caused by the forms upgrade (#616)

* Fix build issue (#617)

Missed some package issues

* Update KML tour sample to use PCE (#618)

* Update KML tour sample to use PCE

I had missed the KmlTour.TourStatus property. Using PropertyChanged event, it is possible to detect changes to the tour status, which enables updating the UI when the tour completes.

* Add missing API mention in readme

* Update KML tour for crash when leaving sample

Reset the tour when the Unloaded/Exit/Stop/Closing event/method is raised/called.

* Update to unsub most iOS events when leaving sample.

* New sample: Generate offline map with local basemap (#619)

* New sample: Generate offline map with local basemap

Demonstrates how to take a map offline, giving the user the option to refer to a locally-downloaded basemap.

* Update iOS screenshot

* Update screenshots, readme, and code

* New sample: Group layers (#620)

* New sample: Group layers

* Update iOS screenshot

* Update terrain exaggeration minimums (#621)

* Improve slider behavior for some samples (#624)

* More event subscription improvements

* More iOS event improvements

* Update Take screenshot to wait for draw complete (#623)

* Update Take screenshot to wait for draw complete

* Code changes from review

* Update screenshots, fix forms

* Add note about UWP bug

* Request location permissions Xamarin.Android (#625)

* Request location permissions Xamarin.Android

* Add design package

* Fix issues - data

* Fix geometry samples

* Fix graphics overlay samples

* Fix layer samples

* New sample: Download a preplanned map area (#622)

* Download preplanned map, WPF, UWP, Forms

* Android implementation

* iOS implementation

* Clean up iOS sample

* Changes based on review

* Fix UWP copyright date

* Changes from review

* Fix map samples

* Update samples for SSG build issues

* Update samples based on testing

* Fix lingering search errors

* csproj formatting

* Automated code reformatting

* Standardize comments

* Solve memory leak with actions

* Fix issue with sketch on map
Latest commit 1093757 May 22, 2019

README.md

arcgis-runtime-samples-dotnet

This project contains samples for the ArcGIS Runtime SDK for .NET including WPF, UWP and Xamarin platforms.

Samples - Table of Contents

See Table of Contents under different platforms

Instructions

  1. Fork and then clone the repo or download the .zip file.
  2. Confirm the supported system configuration for the API of interest in the ArcGIS Runtime SDK for .NET:
  1. For the platform you want to view: open the solution, restore NuGet packages, build, and run the application
  • WPF: src\Desktop\ArcGISRuntime.WPF.Viewer.sln
  • UWP: src\Windows\ArcGISRuntime.UWP.Viewer.sln
  • Xamarin.Android: src\Android\ArcGISRuntime.Xamarin.Samples.Android.sln
  • Xamarin.iOS: src\iOS\ArcGISRuntime.Xamari.Samples.iOS.sln
  • Xamarin.Forms: src\Windows\ArcGISRuntime.Xamarin.Samples.Forms.sln

or

  • All: src\ArcGISRuntime.Viewers.All.sln
  • Windows ( WPF / UWP ): src\ArcGISRuntime.Viewers.Windows.sln
  • Xamarin (iOS, Android, Forms): src\ArcGISRuntime.Viewers.Xamarin.sln

Notes:

When compiling Universal Windows Platform samples, make sure that you are compiling against x86/x64/ARM platform and not using AnyCPU.

Requirements

Resources

Offline Data

Several samples require local data to function properly. That data is downloaded to local storage automatically at runtime. This process is handled by the DataManager class (located in the 'Managers' folder in each view project). Samples that use the data manager to download their data are differentiated as follows:

  • They have RequiresOfflineData set to true in their metadata.json files
  • They have one or more entries under DataItemIds in their metadata.json files (these are portal item Ids)
  • They use the data manager to identify the correct path for their offline files at run time

See the [contribution guidelines] (https://github.com/Esri/arcgis-runtime-samples-dotnet/wiki/Contributing) for more detailed information.

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Contributing

Anyone and everyone is welcome to [contribute] (https://github.com/Esri/arcgis-runtime-samples-dotnet/wiki/Contributing).

Licensing

Copyright 2016 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's license.txt file.

Modern UI Icons

Icons included under the Assets folder in the Phone and Store projects are from Modern UI Icons. License information can be found at https://github.com/Templarian/WindowsIcons/blob/master/WindowsPhone/license.txt

You can’t perform that action at this time.