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? }
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.