-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathLocationComponentSettings.cs
66 lines (64 loc) · 1.94 KB
/
LocationComponentSettings.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
using Microsoft.VisualBasic;
namespace MapboxMaui.Locations;
/**
* Shows a location puck on the map.
*/
public record LocationComponentSettings(
/**
* Whether the user location is visible on the map.
*/
bool Enabled,
/**
* Whether the location puck is pulsing on the map. Works for 2D location puck only.
*/
bool PulsingEnabled,
/**
* The color of the pulsing circle. Works for 2D location puck only.
*/
int PulsingColor,
/**
* The maximum radius of the pulsing circle. Works for 2D location puck only. Note: Setting
* [pulsingMaxRadius] to LocationComponentConstants.PULSING_MAX_RADIUS_FOLLOW_ACCURACY will set the
* pulsing circle's maximum radius to follow location accuracy circle. This property is specified in
* pixels.
*/
float PulsingMaxRadius,
/**
* Whether show accuracy ring with location puck. Works for 2D location puck only.
*/
bool ShowAccuracyRing,
/**
* The color of the accuracy ring. Works for 2D location puck only.
*/
int AccuracyRingColor,
/**
* The color of the accuracy ring border. Works for 2D location puck only.
*/
int AccuracyRingBorderColor,
/**
* Sets the id of the layer that's added above to when placing the component on the map.
*/
string LayerAbove,
/**
* Sets the id of the layer that's added below to when placing the component on the map.
*/
string LayerBelow,
/**
* Whether the puck rotates to track the bearing source.
*/
bool PuckBearingEnabled,
/**
* The enum controls how the puck is oriented
*/
PuckBearing puckBearing,
/**
* The slot this layer is assigned to. If specified, and a slot with that name exists, it will be
* placed at that position in the layer order.
*/
string Slot,
/**
* Defines what the customised look of the location puck. Note that direct changes to the puck
* variables won't have any effect, a new puck needs to be set every time.
*/
ILocationPuck LocationPuck
);