5
5
using MapboxMaui . Locations ;
6
6
using MapboxMaui . Query ;
7
7
using MapboxMaui . Styles ;
8
+ using MapboxMaui . ViewAnnotations ;
8
9
using MapboxMaui . Viewport ;
9
10
10
11
public partial interface IMapboxView : IView
@@ -25,12 +26,13 @@ public partial interface IMapboxView : IView
25
26
26
27
IEnumerable < ResolvedImage > Images { get ; set ; }
27
28
28
- IEnumerable < ViewAnnotationOptions > ViewAnnotations { get ; set ; }
29
-
30
29
Terrain Terrain { get ; set ; }
31
30
32
31
Light Light { get ; set ; }
33
32
33
+ ContentView AnnotationView { get ; set ; }
34
+ IViewAnnotationController ViewAnnotationController { get ; }
35
+
34
36
IAnnotationController AnnotationController { get ; }
35
37
36
38
IMapFeatureQueryable QueryManager { get ; }
@@ -39,7 +41,6 @@ public partial interface IMapboxView : IView
39
41
40
42
ILocationComponentPlugin LocationComponent { get ; }
41
43
}
42
-
43
44
partial interface IMapboxView
44
45
{
45
46
event EventHandler MapReady ;
@@ -54,7 +55,7 @@ partial interface IMapboxView
54
55
event EventHandler < MapTappedEventArgs > MapTapped ;
55
56
ICommand Command { get ; }
56
57
57
- event EventHandler < CameraChangedEventArgs > CameraChanged ;
58
+ event EventHandler < Camera . CameraChangedEventArgs > CameraChanged ;
58
59
ICommand CameraChangedCommand { get ; }
59
60
60
61
event EventHandler < Viewport . ViewportStatusChangedEventArgs > ViewportStatusChanged ;
@@ -68,85 +69,7 @@ partial interface IMapboxView
68
69
ICommand RotatingCommand { get ; }
69
70
}
70
71
71
- public interface IAnnotationController
72
- {
73
- IPolygonAnnotationManager CreatePolygonAnnotationManager ( string id , LayerPosition layerPosition ) ;
74
- ICircleAnnotationManager CreateCircleAnnotationManager ( string id , LayerPosition layerPosition ) ;
75
- IPointAnnotationManager CreatePointAnnotationManager ( string id , LayerPosition layerPosition , ClusterOptions clusterOptions = null ) ;
76
- IPolylineAnnotationManager CreatePolylineAnnotationManager ( string id , LayerPosition layerPosition ) ;
77
- }
78
-
79
72
public interface IMapFeatureQueryable
80
73
{
81
74
Task < IEnumerable < QueriedRenderedFeature > > QueryRenderedFeaturesWith ( ScreenPosition point , RenderedQueryOptions options ) ;
82
75
}
83
-
84
- public interface IMapboxController
85
- {
86
- IPosition GetMapPosition ( ScreenPosition position ) ;
87
- CoordinateBounds GetCoordinateBoundsForCamera ( CameraOptions cameraOptions ) ;
88
- ScreenPosition GetScreenPosition ( IPosition position ) ;
89
- CameraOptions ? CameraForCoordinates (
90
- IEnumerable < IPosition > coordinates ,
91
- CameraOptions ? cameraOptions = default ,
92
- Thickness ? coordinatesPadding = default ,
93
- double ? maxZoom = default ,
94
- ScreenPosition ? offset = default
95
- ) ;
96
- void CameraForCoordinates (
97
- IEnumerable < IPosition > coordinates ,
98
- Action < CameraOptions ? > completion ,
99
- CameraOptions ? cameraOptions = default ,
100
- Thickness ? coordinatesPadding = default ,
101
- double ? maxZoom = default ,
102
- ScreenPosition ? offset = default
103
- ) ;
104
- void SetSourcePropertyFor < T > ( string sourceId , string propertyName , T value , Action < Exception > completion = default ) ;
105
- void SetLayerPropertyFor < T > ( string layerId , string propertyName , T value , Action < Exception > completion = default ) ;
106
- }
107
-
108
- public class MapTappedEventArgs : EventArgs
109
- {
110
- public MapTappedPosition Position { get ; }
111
-
112
- public MapTappedEventArgs ( MapTappedPosition position )
113
- {
114
- Position = position ;
115
- }
116
- }
117
- public class CameraChangedEventArgs : EventArgs
118
- {
119
- public CameraChangedEventArgs ( CameraOptions options )
120
- {
121
- Options = options ;
122
- }
123
-
124
- public CameraOptions Options { get ; }
125
- }
126
- public class IndicatorAccuracyRadiusChangedEventArgs : EventArgs
127
- {
128
- public IndicatorAccuracyRadiusChangedEventArgs ( double radius )
129
- {
130
- Radius = radius ;
131
- }
132
-
133
- public double Radius { get ; }
134
- }
135
- public class IndicatorBearingChangedEventArgs : EventArgs
136
- {
137
- public IndicatorBearingChangedEventArgs ( double bearing )
138
- {
139
- Bearing = bearing ;
140
- }
141
-
142
- public double Bearing { get ; }
143
- }
144
- public class IndicatorPositionChangedEventArgs : EventArgs
145
- {
146
- public IndicatorPositionChangedEventArgs ( IPosition position )
147
- {
148
- Position = position ;
149
- }
150
-
151
- public IPosition Position { get ; }
152
- }
0 commit comments