A PoC illustrating a bug in GeoViewController.IdentifyLayersAsync() for FeatureCollectionLayer
Setup:
- Esri.ArcGISRuntime.WPF 200.6
- Esri.ArcGISRuntime.Toolkit.WPF 200.6
- create a collection of Graphic => graphics
- add then into a FeatureCollection
- add the FeatureCollection to FeatureCollectionLayer
- add the FeatureCollectionLayer into Map.OperationalLayers
- run the app and click on the cluster of symbols in the middle of the map
Bug repro:
- in code behind, we have
TheMapView_GeoViewTappedwhich callsIdentifyLayersAsyncdirectly on theMapViewobject - in VM, we have a
GeoViewControllerand a handler methodOnGeoViewTapped, which callsIdentifyLayersAsyncon theGeoViewController - in the output we can see the number of GeoElements returned from both methods
- the direct path
MapView.IdentifyLayersAsyncreturns 100 GeoElements - the path via the
GeoViewController.IdentifyLayersAsyncreturn only a single GeoElement