Version 4.15: Changed MapControl.MapControl.WPF.Core assembly name. Improved MapProjections.

This commit is contained in:
ClemensF 2019-11-03 17:09:58 +01:00
parent 25b78feb0b
commit 2c8bca205e

View file

@ -79,6 +79,7 @@ namespace ViewModel
SourceName = "Bing Maps Aerial", SourceName = "Bing Maps Aerial",
Description = "© [Microsoft](http://www.bing.com/maps/)", Description = "© [Microsoft](http://www.bing.com/maps/)",
Mode = BingMapsTileLayer.MapMode.Aerial, Mode = BingMapsTileLayer.MapMode.Aerial,
MaxZoomLevel = 21,
MapForeground = new SolidColorBrush(Colors.White), MapForeground = new SolidColorBrush(Colors.White),
MapBackground = new SolidColorBrush(Colors.Black) MapBackground = new SolidColorBrush(Colors.Black)
} }
@ -114,13 +115,7 @@ namespace ViewModel
}, },
{ {
"SevenCs ChartServer", "SevenCs ChartServer",
new WmsImageLayer new ChartServerLayer()
{
Description = "© [SevenCs GmbH](http://www.sevencs.com)",
ServiceUri = new Uri("http://chartserver4.sevencs.com:8080"),
Layers = "ENC",
MaxBoundingBoxWidth = 360
}
} }
}; };
@ -175,4 +170,22 @@ namespace ViewModel
} }
} }
} }
public class ChartServerLayer : WmsImageLayer
{
public ChartServerLayer()
{
Description = "© [SevenCs GmbH](http://www.sevencs.com)";
ServiceUri = new Uri("https://wms.sevencs.com:9090");
Layers = "ENC";
MaxBoundingBoxWidth = 360;
}
protected override string GetCrsParam(MapProjection projection)
{
return base.GetCrsParam(projection)
.Replace("AUTO2:97001", "AUTO2:7CS01")
.Replace("AUTO2:97002", "AUTO2:7CS02");
}
}
} }