I'm not sure if this is a good place to post ArcGIS development questions, but here goes ...
I am trying to figure out ArcGIS Indoors. I don't want to worry about paths right now, I just want to be able to get a blue dot to pop up on a screen. I am working with the IndoorPositioning example in the ArcGIS Samples app (this is for .NET MAUI), and it throws an exception on this line:
FeatureLayer pathwaysFeatureLayer = MyMapView.Map.OperationalLayers.OfType<FeatureLayer>().Single(l => l.Name.Equals(PathwaysLayerName, StringComparison.InvariantCultureIgnoreCase));
The exception is InvalidOperationsException: Sequence contains no matching elements.
My Map does have a Pathways feature class, it's just empty (it has columns, but no rows). Is that why this is throwing the exception? And how can I get around this without having to go through the rigmarole of making paths?
Hi @moraa2 .. you can create some Pathway features and give it another try. BTW, pathway lines are used for snapping the blue dot. You don't need to worry about complicated pathway generation. Just digitize some lines in the middle of hallways. You will also need to make sure that the Pathways feature class has the IPS field with the correct domain.
Also, you can post a comment in the GitHub repo where the samples are hosted to get responses.