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? }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.