Skip to content

Commit af1bdf8

Browse files
authored
Update indoor positioning sample to include a placeholder building (#1781)
1 parent bd3d503 commit af1bdf8

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/IndoorPositioning.xaml.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ public partial class IndoorPositioning : ContentPage, IDisposable
3030

3131
private int? _currentFloor = null;
3232

33-
// Provide your own data in order to use this sample. Code in the sample may need to be modified to work with other maps.
34-
33+
// Provide your own data in order to use this sample in a local building
3534
#region BuildingData
3635

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

39-
private const string ItemId = "YOUR_ITEM_ID_HERE";
38+
private const string ItemId = "8fa941613b4b4b2b8a34ad4cdc3e4bba";
4039

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

src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ When there is no IPS beacons nearby, or other errors occur while initializing th
1717
## How it works
1818

1919
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.
20-
2. Create and load an `IndoorsLocationDataSource` (stored with the map), then create an `IndoorsLocationDataSource` from it.
20+
2. Create and load an `IndoorPositioningDefinition` (stored with IPS-aware maps), then create an `IndoorsLocationDataSource` from it.
2121
3. Handle location change events to respond to floor changes or read other metadata for locations.
2222
4. Assign the `IndoorsLocationDataSource` to the map view's location display.
2323
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.
2424
6. Use the `AutoPanMode` property to change how the map behaves when location updates are received.
2525

2626
## Relevant API
2727

28-
* ArcGISFeatureTable
29-
* FeatureTable
3028
* IndoorPositioningDefinition
3129
* IndoorsLocationDataSource
3230
* Location
@@ -37,7 +35,7 @@ When there is no IPS beacons nearby, or other errors occur while initializing th
3735

3836
## About the data
3937

40-
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.
38+
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.
4139

4240
## Additional information
4341

src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.metadata.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
"/net/latest/maui/sample-code/show-device-location-using-indoor-positioning.htm"
2929
],
3030
"relevant_apis": [
31-
"ArcGISFeatureTable",
32-
"FeatureTable",
3331
"IndoorPositioningDefinition",
3432
"IndoorsLocationDataSource",
3533
"Location",

0 commit comments

Comments
 (0)