-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPolylineAnnotationManager.cs
60 lines (55 loc) · 1.83 KB
/
PolylineAnnotationManager.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
namespace MapboxMaui.Annotations;
using System.Collections.Generic;
using System.Linq;
using MapboxMapsObjC;
public partial class PolylineAnnotationManager
: AnnotationManager<TMBPolylineAnnotationManager, PolylineAnnotation>
, IPolylineAnnotationManager
{
private readonly TMBPolylineAnnotationManager nativeManager;
public PolylineAnnotationManager(
string id,
TMBPolylineAnnotationManager nativeManager
)
: base(id, nativeManager)
{
this.nativeManager = nativeManager;
}
public LineCap? LineCap
{
get => nativeManager.LineCap?.RawValue;
set => nativeManager.LineCap = value?.ToPlatform();
}
public double? LineMiterLimit
{
get => nativeManager.LineMiterLimit?.DoubleValue;
set => nativeManager.LineMiterLimit = value.ToPlatform();
}
public double? LineRoundLimit
{
get => nativeManager.LineRoundLimit?.DoubleValue;
set => nativeManager.LineRoundLimit = value.ToPlatform();
}
public double[] LineDasharray
{
get => nativeManager.LineDasharray?.ToDoubles();
set => nativeManager.LineDasharray = value?.ToPlatform();
}
public double[] LineTranslate
{
get => nativeManager.LineTranslate?.ToDoubles();
set => nativeManager.LineTranslate = value?.ToPlatform();
}
public LineTranslateAnchor? LineTranslateAnchor
{
get => nativeManager.LineTranslateAnchor?.RawValue;
set => nativeManager.LineTranslateAnchor = value?.ToPlatform();
}
public double[] LineTrimOffset
{
get => nativeManager.LineTrimOffset?.ToDoubles();
set => nativeManager.LineTrimOffset = value?.ToPlatform();
}
protected override ITMBAnnotation ToPlatformAnnotationOption(PolylineAnnotation annotation)
=> annotation.ToPlatformValue();
}