Dan's approach only selected based on the envelope of the geometries...
The above method instead uses Silverlight's internal unmanaged efficient mechanism for doing screen-hit testing and will even take the symbology into account
FeatureLayer sitesFeatureLayer = MyMap.Layers["NRA Site Points (FeatureLayer)"] as FeatureLayer; Envelope selectedArea = args.Geometry as Envelope; foreach (Graphic feature in sitesFeatureLayer.Graphics) { if (selectedArea.Intersects(feature.Geometry.Extent)) feature.Selected = !feature.Selected; }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.