-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMapboxStyle.cs
83 lines (67 loc) · 3.59 KB
/
MapboxStyle.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using System.ComponentModel;
namespace MapboxMaui;
[TypeConverter(typeof(MapboxStyleTypeConverter))]
public struct MapboxStyle : INamedString
{
public string Value { get; private set; }
public MapboxStyle(string value)
{
Value = value;
}
public static implicit operator string(MapboxStyle mapboxStyle) => mapboxStyle.Value;
public static explicit operator MapboxStyle(string uri) => new MapboxStyle(uri);
public override string ToString() => $"Uri: {Value}";
/**
* Mapbox Standard: A dynamic and performant 3D style that is the default for Mapbox maps.
*/
public static readonly MapboxStyle STANDARD = (MapboxStyle)"mapbox://styles/mapbox/standard";
/**
* Mapbox Streets: A complete base map, perfect for incorporating your own data. Using this
* constant means your map style will always use the latest version and may change as we
* improve the style.
*/
public static readonly MapboxStyle MAPBOX_STREETS = (MapboxStyle)"mapbox://styles/mapbox/streets-v12";
/**
* Outdoors: A general-purpose style tailored to outdoor activities. Using this constant means
* your map style will always use the latest version and may change as we improve the style.
*/
public static readonly MapboxStyle OUTDOORS = (MapboxStyle)"mapbox://styles/mapbox/outdoors-v12";
/**
* Light: Subtle light backdrop for data visualizations. Using this constant means your map
* style will always use the latest version and may change as we improve the style.
*/
public static readonly MapboxStyle LIGHT = (MapboxStyle)"mapbox://styles/mapbox/light-v11";
/**
* Dark: Subtle dark backdrop for data visualizations. Using this constant means your map style
* will always use the latest version and may change as we improve the style.
*/
public static readonly MapboxStyle DARK = (MapboxStyle)"mapbox://styles/mapbox/dark-v11";
/**
* Satellite: A beautiful global satellite and aerial imagery layer. Using this constant means
* your map style will always use the latest version and may change as we improve the style.
*/
public static readonly MapboxStyle SATELLITE = (MapboxStyle)"mapbox://styles/mapbox/satellite-v9";
/**
* Satellite Streets: Global satellite and aerial imagery with unobtrusive labels. Using this
* constant means your map style will always use the latest version and may change as we
* improve the style.
*/
public static readonly MapboxStyle SATELLITE_STREETS = (MapboxStyle)"mapbox://styles/mapbox/satellite-streets-v12";
/**
* Traffic Day: Color-coded roads based on live traffic congestion data. Traffic data is currently
* available in [these select countries](https://www.mapbox.com/help/how-directions-work/#traffic-data).
* Using this constant means your map style will always use the latest version and may change as we improve the style.
*/
public static readonly MapboxStyle TRAFFIC_DAY = (MapboxStyle)"mapbox://styles/mapbox/traffic-day-v2";
/**
* Traffic Night: Color-coded roads based on live traffic congestion data, designed to maximize
* legibility in low-light situations. Traffic data is currently available in
* [these select countries](https://www.mapbox.com/help/how-directions-work/#traffic-data).
* Using this constant means your map style will always use the latest version and may change as we improve the style.
*/
public static readonly MapboxStyle TRAFFIC_NIGHT = (MapboxStyle)"mapbox://styles/mapbox/traffic-night-v2";
}
public interface INamedString
{
string Value { get; }
}