Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ public partial class IndoorPositioning : ContentPage, IDisposable

private int? _currentFloor = null;

// Provide your own data in order to use this sample. Code in the sample may need to be modified to work with other maps.

// Provide your own data in order to use this sample in a local building
#region BuildingData

private Uri _portalUri = new Uri("https://www.arcgis.com/");

private const string ItemId = "YOUR_ITEM_ID_HERE";
private const string ItemId = "8fa941613b4b4b2b8a34ad4cdc3e4bba";

private string[] _layerNames = new string[] { "Details", "Units", "Levels" };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ When there is no IPS beacons nearby, or other errors occur while initializing th
## How it works

1. Load an IPS-aware map. This can be a web map hosted as a portal item in ArcGIS Online, an Enterprise Portal, or a mobile map package (.mmpk) created with ArcGIS Pro.
2. Create and load an `IndoorsLocationDataSource` (stored with the map), then create an `IndoorsLocationDataSource` from it.
2. Create and load an `IndoorPositioningDefinition` (stored with IPS-aware maps), then create an `IndoorsLocationDataSource` from it.
3. Handle location change events to respond to floor changes or read other metadata for locations.
4. Assign the `IndoorsLocationDataSource` to the map view's location display.
5. Enable and disable the map view's location display using `StartAsync()` and `StopAsync()`. Device location will appear on the display as a blue dot and update as the user moves throughout the space.
6. Use the `AutoPanMode` property to change how the map behaves when location updates are received.

## Relevant API

* ArcGISFeatureTable
* FeatureTable
* IndoorPositioningDefinition
* IndoorsLocationDataSource
* Location
Expand All @@ -37,7 +35,7 @@ When there is no IPS beacons nearby, or other errors occur while initializing th

## About the data

This sample uses an [IPS-enabled web map](https://www.arcgis.com/home/item.html?id=8fa941613b4b4b2b8a34ad4cdc3e4bba) that displays Building L on the Esri Redlands campus. Please note: you would only be able to use the indoor positioning functionalities when you are inside this building. Swap the web map to test with your own IPS setup.
This sample uses an [IPS-enabled web map](https://www.arcgis.com/home/item.html?id=8fa941613b4b4b2b8a34ad4cdc3e4bba) that displays Building M on the Esri Redlands campus. Please note: you would only be able to use the indoor positioning functionalities when you are inside this building. Swap the web map to test with your own IPS setup.

## Additional information

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
"/net/latest/maui/sample-code/show-device-location-using-indoor-positioning.htm"
],
"relevant_apis": [
"ArcGISFeatureTable",
"FeatureTable",
"IndoorPositioningDefinition",
"IndoorsLocationDataSource",
"Location",
Expand Down
Loading