using Syncfusion.UI.Xaml.Maps;

namespace InABox.Wpf.DynamicGrid;

public enum GoogleImageryLayerType
{
    Road,
    Satellite,
}

public class GoogleImageryLayer : ImageryLayer
{
    private GoogleImageryLayerType _type;

    protected override string GetUri(int X, int Y, int Scale)
    {
        var link = _type == GoogleImageryLayerType.Road
            ? $"https://mt1.google.com/vt/lyrs=m@221097413,3&x={X}&y={Y}&z={Scale}"
            : $"https://mt0.google.com/vt/lyrs=y&x={X}&y={Y}&z={Scale}";
        return link;
    }

    public GoogleImageryLayerType Type
    {
        get => _type;
        set => _type = value; 
    }
}