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; }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.