mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Reverted new() expressions
This commit is contained in:
parent
264f751d4e
commit
107b8e0f90
8 changed files with 52 additions and 23 deletions
|
|
@ -26,8 +26,8 @@ namespace MapControl
|
|||
{
|
||||
private const int tileSize = 256;
|
||||
|
||||
private static readonly Point mapTopLeft = new(-180d * MapProjection.Wgs84MeterPerDegree,
|
||||
180d * MapProjection.Wgs84MeterPerDegree);
|
||||
private static readonly Point mapTopLeft = new Point(-180d * MapProjection.Wgs84MeterPerDegree,
|
||||
180d * MapProjection.Wgs84MeterPerDegree);
|
||||
|
||||
public static readonly DependencyProperty TileSourceProperty =
|
||||
DependencyPropertyHelper.Register<MapTileLayer, TileSource>(nameof(TileSource), null,
|
||||
|
|
@ -45,7 +45,7 @@ namespace MapControl
|
|||
/// <summary>
|
||||
/// A default MapTileLayer using OpenStreetMap data.
|
||||
/// </summary>
|
||||
public static MapTileLayer OpenStreetMapTileLayer => new()
|
||||
public static MapTileLayer OpenStreetMapTileLayer => new MapTileLayer
|
||||
{
|
||||
TileSource = TileSource.Parse("https://tile.openstreetmap.org/{z}/{x}/{y}.png"),
|
||||
SourceName = "OpenStreetMap",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue