private void SetSnapLayers(SnappableMapFunction func) { func.DoSnapping = _doSnapping; if (!_doSnapping) { return; } foreach (var fl in _geoMap.GetFeatureLayers()) { func.AddLayerToSnap(fl); // changed by jany_ (2016-02-24) allow all layers to be snapped because there seems to be no reason to exclude any of them } }
private void SetSnapLayers(SnappableMapFunction func) { func.DoSnapping = this._doSnapping; if (!this._doSnapping) { return; } foreach (var layer in _geoMap.Layers) { IFeatureLayer fl = layer as IFeatureLayer; if (fl != null && fl != _activeLayer && fl.DataSet.FeatureType != _activeLayer.DataSet.FeatureType) { func.AddLayerToSnap(fl); } } }
private void SetSnapLayers(SnappableMapFunction func) { if (_doSnapping) { func.SnapMode = SnapMode.Point | SnapMode.End | SnapMode.Vertex | SnapMode.Edege; } else { func.SnapMode = SnapMode.None; } if (!_doSnapping) { return; } foreach (var fl in _geoMap.MapFrame.GetAllFeatureLayers()) { func.AddLayerToSnap(fl); // changed by jany_ (2016-02-24) allow all layers to be snapped because there seems to be no reason to exclude any of them } }
private void SetSnapLayers(SnappableMapFunction func) { func.DoSnapping = this._doSnapping; if (!this._doSnapping) return; foreach (var layer in _geoMap.Layers) { IFeatureLayer fl = layer as IFeatureLayer; if (fl != null && fl != _activeLayer && fl.DataSet.FeatureType != _activeLayer.DataSet.FeatureType) func.AddLayerToSnap(fl); } }