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; }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.