-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPolygonAnnotationManager.cs
40 lines (35 loc) · 1.16 KB
/
PolygonAnnotationManager.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
namespace MapboxMaui.Annotations;
using System.Collections.Generic;
using System.Linq;
using MapboxMapsObjC;
public partial class PolygonAnnotationManager
: AnnotationManager<TMBPolygonAnnotationManager, PolygonAnnotation>
, IPolygonAnnotationManager
{
private readonly TMBPolygonAnnotationManager nativeManager;
public PolygonAnnotationManager(
string id,
TMBPolygonAnnotationManager nativeManager
)
: base(id, nativeManager)
{
this.nativeManager = nativeManager;
}
public bool? FillAntialias
{
get => nativeManager.FillAntialias?.BoolValue;
set => nativeManager.FillAntialias = value;
}
public double[] FillTranslate
{
get => nativeManager.FillTranslate?.ToDoubles();
set => nativeManager.FillTranslate = value?.ToPlatform();
}
public FillTranslateAnchor? FillTranslateAnchor
{
get => nativeManager.FillTranslateAnchor?.RawValue;
set => nativeManager.FillTranslateAnchor = value?.ToPlatform();
}
protected override ITMBAnnotation ToPlatformAnnotationOption(PolygonAnnotation annotation)
=> annotation.ToPlatformValue();
}