diff --git a/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/IndoorPositioning.xaml.cs b/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/IndoorPositioning.xaml.cs index cc699c058c..2b3e75de94 100644 --- a/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/IndoorPositioning.xaml.cs +++ b/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/IndoorPositioning.xaml.cs @@ -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" }; diff --git a/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.md b/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.md index bc2827f8ec..9dd1397ced 100644 --- a/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.md +++ b/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.md @@ -17,7 +17,7 @@ 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. @@ -25,8 +25,6 @@ When there is no IPS beacons nearby, or other errors occur while initializing th ## Relevant API -* ArcGISFeatureTable -* FeatureTable * IndoorPositioningDefinition * IndoorsLocationDataSource * Location @@ -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 diff --git a/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.metadata.json b/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.metadata.json index fcabfed012..f4ff0ce836 100644 --- a/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.metadata.json +++ b/src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.metadata.json @@ -28,8 +28,6 @@ "/net/latest/maui/sample-code/show-device-location-using-indoor-positioning.htm" ], "relevant_apis": [ - "ArcGISFeatureTable", - "FeatureTable", "IndoorPositioningDefinition", "IndoorsLocationDataSource", "Location",