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? }
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.