featureLayer.ClearGraphics(); featureLayer.MaxAllowableOffset = maxOffset; // new value calculated from Map.Resolution featureLayer.Initialize(); // is this necessary?
public static double GetMaxOffset(double mapResolution, double pixelTolerance) { // alternate algorithm where map is ESRI map control //maxOffset = Math.Floor(map.Extent.Width / map.ActualWidth) * pixelTolerance; return mapResolution * pixelTolerance; // means n pixels between vertices? }
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.