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? }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.