Skip to content

Commit 085567b

Browse files
committed
- complete migrating to new iOS APIs
1 parent 2ff2299 commit 085567b

File tree

8 files changed

+202
-87
lines changed

8 files changed

+202
-87
lines changed

src/libs/Mapbox.Maui/Models/Styles/Enums.cs

Lines changed: 84 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ partial class VisibilityExtensions
5959
{
6060
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.Visibility ToPlatform(this Visibility value)
6161
{
62-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.Visibility.ValueOf(value);
62+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.Visibility.ValueOf(
63+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
64+
);
6365
}
6466
}
6567
#endif
@@ -128,7 +130,9 @@ partial class LineCapExtensions
128130
{
129131
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.LineCap ToPlatform(this LineCap value)
130132
{
131-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.LineCap.ValueOf(value);
133+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.LineCap.ValueOf(
134+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
135+
);
132136
}
133137
}
134138
#endif
@@ -197,7 +201,9 @@ partial class LineJoinExtensions
197201
{
198202
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.LineJoin ToPlatform(this LineJoin value)
199203
{
200-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.LineJoin.ValueOf(value);
204+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.LineJoin.ValueOf(
205+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
206+
);
201207
}
202208
}
203209
#endif
@@ -296,7 +302,9 @@ partial class IconAnchorExtensions
296302
{
297303
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconAnchor ToPlatform(this IconAnchor value)
298304
{
299-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconAnchor.ValueOf(value);
305+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconAnchor.ValueOf(
306+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
307+
);
300308
}
301309
}
302310
#endif
@@ -365,7 +373,9 @@ partial class IconPitchAlignmentExtensions
365373
{
366374
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconPitchAlignment ToPlatform(this IconPitchAlignment value)
367375
{
368-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconPitchAlignment.ValueOf(value);
376+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconPitchAlignment.ValueOf(
377+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
378+
);
369379
}
370380
}
371381
#endif
@@ -434,7 +444,9 @@ partial class IconRotationAlignmentExtensions
434444
{
435445
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconRotationAlignment ToPlatform(this IconRotationAlignment value)
436446
{
437-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconRotationAlignment.ValueOf(value);
447+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconRotationAlignment.ValueOf(
448+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
449+
);
438450
}
439451
}
440452
#endif
@@ -508,7 +520,9 @@ partial class IconTextFitExtensions
508520
{
509521
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconTextFit ToPlatform(this IconTextFit value)
510522
{
511-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconTextFit.ValueOf(value);
523+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconTextFit.ValueOf(
524+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
525+
);
512526
}
513527
}
514528
#endif
@@ -577,7 +591,9 @@ partial class SymbolPlacementExtensions
577591
{
578592
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.SymbolPlacement ToPlatform(this SymbolPlacement value)
579593
{
580-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.SymbolPlacement.ValueOf(value);
594+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.SymbolPlacement.ValueOf(
595+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
596+
);
581597
}
582598
}
583599
#endif
@@ -646,7 +662,9 @@ partial class SymbolZOrderExtensions
646662
{
647663
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.SymbolZOrder ToPlatform(this SymbolZOrder value)
648664
{
649-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.SymbolZOrder.ValueOf(value);
665+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.SymbolZOrder.ValueOf(
666+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
667+
);
650668
}
651669
}
652670
#endif
@@ -745,7 +763,9 @@ partial class TextAnchorExtensions
745763
{
746764
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextAnchor ToPlatform(this TextAnchor value)
747765
{
748-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextAnchor.ValueOf(value);
766+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextAnchor.ValueOf(
767+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
768+
);
749769
}
750770
}
751771
#endif
@@ -819,7 +839,9 @@ partial class TextJustifyExtensions
819839
{
820840
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextJustify ToPlatform(this TextJustify value)
821841
{
822-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextJustify.ValueOf(value);
842+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextJustify.ValueOf(
843+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
844+
);
823845
}
824846
}
825847
#endif
@@ -888,7 +910,9 @@ partial class TextPitchAlignmentExtensions
888910
{
889911
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextPitchAlignment ToPlatform(this TextPitchAlignment value)
890912
{
891-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextPitchAlignment.ValueOf(value);
913+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextPitchAlignment.ValueOf(
914+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
915+
);
892916
}
893917
}
894918
#endif
@@ -957,7 +981,9 @@ partial class TextRotationAlignmentExtensions
957981
{
958982
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextRotationAlignment ToPlatform(this TextRotationAlignment value)
959983
{
960-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextRotationAlignment.ValueOf(value);
984+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextRotationAlignment.ValueOf(
985+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
986+
);
961987
}
962988
}
963989
#endif
@@ -1026,7 +1052,9 @@ partial class TextTransformExtensions
10261052
{
10271053
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextTransform ToPlatform(this TextTransform value)
10281054
{
1029-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextTransform.ValueOf(value);
1055+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextTransform.ValueOf(
1056+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1057+
);
10301058
}
10311059
}
10321060
#endif
@@ -1090,7 +1118,9 @@ partial class FillTranslateAnchorExtensions
10901118
{
10911119
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.FillTranslateAnchor ToPlatform(this FillTranslateAnchor value)
10921120
{
1093-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.FillTranslateAnchor.ValueOf(value);
1121+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.FillTranslateAnchor.ValueOf(
1122+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1123+
);
10941124
}
10951125
}
10961126
#endif
@@ -1154,7 +1184,9 @@ partial class LineTranslateAnchorExtensions
11541184
{
11551185
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.LineTranslateAnchor ToPlatform(this LineTranslateAnchor value)
11561186
{
1157-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.LineTranslateAnchor.ValueOf(value);
1187+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.LineTranslateAnchor.ValueOf(
1188+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1189+
);
11581190
}
11591191
}
11601192
#endif
@@ -1218,7 +1250,9 @@ partial class IconTranslateAnchorExtensions
12181250
{
12191251
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconTranslateAnchor ToPlatform(this IconTranslateAnchor value)
12201252
{
1221-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconTranslateAnchor.ValueOf(value);
1253+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.IconTranslateAnchor.ValueOf(
1254+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1255+
);
12221256
}
12231257
}
12241258
#endif
@@ -1282,7 +1316,9 @@ partial class TextTranslateAnchorExtensions
12821316
{
12831317
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextTranslateAnchor ToPlatform(this TextTranslateAnchor value)
12841318
{
1285-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextTranslateAnchor.ValueOf(value);
1319+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextTranslateAnchor.ValueOf(
1320+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1321+
);
12861322
}
12871323
}
12881324
#endif
@@ -1346,7 +1382,9 @@ partial class CirclePitchAlignmentExtensions
13461382
{
13471383
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.CirclePitchAlignment ToPlatform(this CirclePitchAlignment value)
13481384
{
1349-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.CirclePitchAlignment.ValueOf(value);
1385+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.CirclePitchAlignment.ValueOf(
1386+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1387+
);
13501388
}
13511389
}
13521390
#endif
@@ -1410,7 +1448,9 @@ partial class CirclePitchScaleExtensions
14101448
{
14111449
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.CirclePitchScale ToPlatform(this CirclePitchScale value)
14121450
{
1413-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.CirclePitchScale.ValueOf(value);
1451+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.CirclePitchScale.ValueOf(
1452+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1453+
);
14141454
}
14151455
}
14161456
#endif
@@ -1474,7 +1514,9 @@ partial class CircleTranslateAnchorExtensions
14741514
{
14751515
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.CircleTranslateAnchor ToPlatform(this CircleTranslateAnchor value)
14761516
{
1477-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.CircleTranslateAnchor.ValueOf(value);
1517+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.CircleTranslateAnchor.ValueOf(
1518+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1519+
);
14781520
}
14791521
}
14801522
#endif
@@ -1538,7 +1580,9 @@ partial class FillExtrusionTranslateAnchorExtensions
15381580
{
15391581
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.FillExtrusionTranslateAnchor ToPlatform(this FillExtrusionTranslateAnchor value)
15401582
{
1541-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.FillExtrusionTranslateAnchor.ValueOf(value);
1583+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.FillExtrusionTranslateAnchor.ValueOf(
1584+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1585+
);
15421586
}
15431587
}
15441588
#endif
@@ -1602,7 +1646,9 @@ partial class RasterResamplingExtensions
16021646
{
16031647
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.RasterResampling ToPlatform(this RasterResampling value)
16041648
{
1605-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.RasterResampling.ValueOf(value);
1649+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.RasterResampling.ValueOf(
1650+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1651+
);
16061652
}
16071653
}
16081654
#endif
@@ -1666,7 +1712,9 @@ partial class HillshadeIlluminationAnchorExtensions
16661712
{
16671713
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.HillshadeIlluminationAnchor ToPlatform(this HillshadeIlluminationAnchor value)
16681714
{
1669-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.HillshadeIlluminationAnchor.ValueOf(value);
1715+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.HillshadeIlluminationAnchor.ValueOf(
1716+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1717+
);
16701718
}
16711719
}
16721720
#endif
@@ -1730,7 +1778,9 @@ partial class SkyTypeExtensions
17301778
{
17311779
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.SkyType ToPlatform(this SkyType value)
17321780
{
1733-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.SkyType.ValueOf(value);
1781+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.SkyType.ValueOf(
1782+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1783+
);
17341784
}
17351785
}
17361786
#endif
@@ -1794,7 +1844,9 @@ partial class AnchorExtensions
17941844
{
17951845
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.Anchor ToPlatform(this Anchor value)
17961846
{
1797-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.Anchor.ValueOf(value);
1847+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.Anchor.ValueOf(
1848+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1849+
);
17981850
}
17991851
}
18001852
#endif
@@ -1858,7 +1910,9 @@ partial class StyleProjectionNameExtensions
18581910
{
18591911
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.ProjectionName ToPlatform(this StyleProjectionName value)
18601912
{
1861-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.ProjectionName.ValueOf(value);
1913+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.ProjectionName.ValueOf(
1914+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1915+
);
18621916
}
18631917
}
18641918
#endif
@@ -1922,7 +1976,9 @@ partial class TextWritingModeExtensions
19221976
{
19231977
public static Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextWritingMode ToPlatform(this TextWritingMode value)
19241978
{
1925-
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextWritingMode.ValueOf(value);
1979+
return Com.Mapbox.Maps.Extension.Style.Layers.Properties.Generated.TextWritingMode.ValueOf(
1980+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
1981+
);
19261982
}
19271983
}
19281984
#endif

src/libs/Mapbox.Maui/Models/Styles/Sources/SourceProperties.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ partial class SchemeExtensions
6161
{
6262
public static Com.Mapbox.Maps.Extension.Style.Sources.Generated.Scheme ToPlatform(this Scheme value)
6363
{
64-
return Com.Mapbox.Maps.Extension.Style.Sources.Generated.Scheme.ValueOf(value);
64+
return Com.Mapbox.Maps.Extension.Style.Sources.Generated.Scheme.ValueOf(
65+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
66+
);
6567
}
6668
}
6769
#endif
@@ -123,7 +125,9 @@ partial class EncodingExtensions
123125
{
124126
public static Com.Mapbox.Maps.Extension.Style.Sources.Generated.Encoding ToPlatform(this Encoding value)
125127
{
126-
return Com.Mapbox.Maps.Extension.Style.Sources.Generated.Encoding.ValueOf(value);
128+
return Com.Mapbox.Maps.Extension.Style.Sources.Generated.Encoding.ValueOf(
129+
value.Value.ToUpper(new System.Globalization.CultureInfo("en-US"))
130+
);
127131
}
128132
}
129133
#endif

0 commit comments

Comments
 (0)