AnsweredAssumed Answered

Identify polygon layer

Question asked by minerjoe Champion on Apr 20, 2018
Latest reply on Apr 23, 2018 by minerjoe

It seems with polygon layers an identify only works when the user clicks on the outline of the polygon.  Shouldn't a polygon be identifiable when clicking in the middle of the polygon?


Code is pretty simple, I don't see anything where I would specify that we are trying to do a polygon


            for ( int i = map.OperationalLayers.Count - 1; i >= 0; i-- )
                FeatureLayer mapLayer = map.OperationalLayers[i] as FeatureLayer;
                if ( mapLayer == null ) continue;

                if ( !mapLayer.IsVisible ) continue;

                IdentifyLayerResult identifyResult = await mapView.IdentifyLayerAsync(mapLayer, e.Position, tolerance, false, 10);

                foreach ( var feature in identifyResult.GeoElements.OfType<Feature>() )
                   //do something with results