Hi,I'm trying to use FindGraphicsInHostCoordinates on FeatureLayer after LeftMouseButtonDown on layer feature. The code is as follows:
Point position = e.ScreenPoint;
FeatureLayer featureLayer = MyMap.Layers["Stops"] as FeatureLayer;
IEnumerable<Graphic> clickedFeatures = featureLayer.FindGraphicsInHostCoordinates(position);
MessageBox.Show(clickedFeatures.Count().ToString());
Everything goes OK when I zoom on the map, but when I pan to new location and click on the feature I got an number of features '0'. When I zoom out or in and click that feature again, I got '1' which is of course correct.What is the problem here? I firstly thought that problem is that layer property Mode was set to "OnDemand" so I switched to "Snapshot" but it hadn't helped. Thanks for help.Filip