Index: Core/Components/src/Core.Components.DotSpatial.Forms/MapControl.cs =================================================================== diff -u -r8b36313c9a9136c821c2614762889a63968aa8e6 -rb89eebcea2923640c50590ddc8c9f9b1120c0ea1 --- Core/Components/src/Core.Components.DotSpatial.Forms/MapControl.cs (.../MapControl.cs) (revision 8b36313c9a9136c821c2614762889a63968aa8e6) +++ Core/Components/src/Core.Components.DotSpatial.Forms/MapControl.cs (.../MapControl.cs) (revision b89eebcea2923640c50590ddc8c9f9b1120c0ea1) @@ -24,7 +24,6 @@ using System.Linq; using System.Windows.Forms; using Core.Common.Base; -using Core.Components.DotSpatial.Converter; using Core.Components.DotSpatial.Layer; using Core.Components.DotSpatial.MapFunctions; using Core.Components.Gis.Data; @@ -255,40 +254,37 @@ { for (var i = 0; i < mapDataThatShouldBeDrawn.Count; i++) { - map.Layers.Move(drawnMapDataLookup[mapDataThatShouldBeDrawn[i]].MapFeatureLayer, i); + map.Layers.Move(drawnMapDataLookup[mapDataThatShouldBeDrawn[i]].FeatureBasedMapDataLayer, i); } } private void DrawMapData(FeatureBasedMapData featureBasedMapData) { - var mapFeatureLayer = FeatureBasedMapDataLayerFactory.Create(featureBasedMapData); + var featureBasedMapDataLayer = FeatureBasedMapDataLayerFactory.Create(featureBasedMapData); var drawnMapData = new DrawnMapData { FeatureBasedMapData = featureBasedMapData, Features = featureBasedMapData.Features, - MapFeatureLayer = mapFeatureLayer + FeatureBasedMapDataLayer = featureBasedMapDataLayer }; - drawnMapData.Observer = new Observer(() => + drawnMapData.Observer = new Observer(() => { drawnMapData.FeatureBasedMapDataLayer.Update(); }) { - drawnMapData.MapFeatureLayer.Update(); - }) - { Observable = featureBasedMapData }; drawnMapDataList.Add(drawnMapData); - map.Layers.Add(mapFeatureLayer); + map.Layers.Add(featureBasedMapDataLayer); } private void RemoveMapData(DrawnMapData drawnMapDataToRemove) { drawnMapDataToRemove.Observer.Dispose(); drawnMapDataList.Remove(drawnMapDataToRemove); - map.Layers.Remove(drawnMapDataToRemove.MapFeatureLayer); + map.Layers.Remove(drawnMapDataToRemove.FeatureBasedMapDataLayer); } private static IEnumerable GetFeatureBasedMapDataRecursively(MapDataCollection mapDataCollection) @@ -346,7 +342,7 @@ public MapFeature[] Features { get; set; } - public IFeatureBasedMapDataLayer MapFeatureLayer { get; set; } + public IFeatureBasedMapDataLayer FeatureBasedMapDataLayer { get; set; } public Observer Observer { get; set; } } Index: Core/Components/src/Core.Components.DotSpatial/Converter/FeatureBasedMapDataConverter.cs =================================================================== diff -u -rd348f01e2a67e8ceee60a095c7f858d2f8c02081 -rb89eebcea2923640c50590ddc8c9f9b1120c0ea1 --- Core/Components/src/Core.Components.DotSpatial/Converter/FeatureBasedMapDataConverter.cs (.../FeatureBasedMapDataConverter.cs) (revision d348f01e2a67e8ceee60a095c7f858d2f8c02081) +++ Core/Components/src/Core.Components.DotSpatial/Converter/FeatureBasedMapDataConverter.cs (.../FeatureBasedMapDataConverter.cs) (revision b89eebcea2923640c50590ddc8c9f9b1120c0ea1) @@ -39,15 +39,29 @@ /// /// The type of feature based map data to convert. /// The type of map feature layer to set the converted data to. - public abstract class FeatureBasedMapDataConverter : IFeatureBasedMapDataConverter + public abstract class FeatureBasedMapDataConverter where TFeatureBasedMapData : FeatureBasedMapData where TMapFeatureLayer : FeatureLayer, IMapFeatureLayer { + /// + /// Checks whether the can convert the . + /// + /// The to check for. + /// true if the can be converted by the + /// , + /// false otherwise. public bool CanConvertMapData(FeatureBasedMapData data) { return data is TFeatureBasedMapData; } + /// + /// Creates a based on the that was given. + /// + /// The data to transform into a . + /// A new . + /// Thrown when returns false. + /// Thrown when is null. public IMapFeatureLayer Convert(FeatureBasedMapData data) { ValidateParameters(data); @@ -60,13 +74,28 @@ return layer; } + /// + /// Converts all feature related data from to . + /// + /// The data to convert the feature related data from. + /// The layer to convert the feature related data to. + /// Thrown when returns false. + /// Thrown when or is null. public void ConvertLayerFeatures(FeatureBasedMapData data, IMapFeatureLayer layer) { ValidateParameters(data, layer); ConvertLayerFeaturesInternal(data, layer); } + /// + /// Converts all general properties (like and ) + /// from to . + /// + /// The data to convert the general properties from. + /// The layer to convert the general properties to. + /// Thrown when returns false. + /// Thrown when or is null. public void ConvertLayerProperties(FeatureBasedMapData data, IMapFeatureLayer layer) { ValidateParameters(data, layer); Fisheye: Tag b89eebcea2923640c50590ddc8c9f9b1120c0ea1 refers to a dead (removed) revision in file `Core/Components/src/Core.Components.DotSpatial/Converter/IFeatureBasedMapDataConverter.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Core/Components/src/Core.Components.DotSpatial/Core.Components.DotSpatial.csproj =================================================================== diff -u -r8b36313c9a9136c821c2614762889a63968aa8e6 -rb89eebcea2923640c50590ddc8c9f9b1120c0ea1 --- Core/Components/src/Core.Components.DotSpatial/Core.Components.DotSpatial.csproj (.../Core.Components.DotSpatial.csproj) (revision 8b36313c9a9136c821c2614762889a63968aa8e6) +++ Core/Components/src/Core.Components.DotSpatial/Core.Components.DotSpatial.csproj (.../Core.Components.DotSpatial.csproj) (revision b89eebcea2923640c50590ddc8c9f9b1120c0ea1) @@ -64,7 +64,6 @@ Properties\GlobalAssembly.cs -