-
Notifications
You must be signed in to change notification settings - Fork 494
/
mapbox_gl_platform_interface.dart
271 lines (206 loc) · 9.07 KB
/
mapbox_gl_platform_interface.dart
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
// ignore_for_file: unnecessary_getters_setters
part of mapbox_gl_platform_interface;
abstract class MapboxGlPlatform {
/// The default instance of [MapboxGlPlatform] to use.
///
/// Defaults to [MethodChannelMapboxGl].
///
/// Platform-specific plugins should set this with their own platform-specific
/// class that extends [MapboxGlPlatform] when they register themselves.
static MapboxGlPlatform Function() createInstance =
() => MethodChannelMapboxGl();
static Map<int, MapboxGlPlatform> _instances = {};
static void addInstance(int id, MapboxGlPlatform platform) {
_instances[id] = platform;
}
static MapboxGlPlatform getInstance(int id) {
return _instances[id];
}
final ArgumentCallbacks<String> onInfoWindowTappedPlatform =
ArgumentCallbacks<String>();
final ArgumentCallbacks<String> onSymbolTappedPlatform =
ArgumentCallbacks<String>();
final ArgumentCallbacks<String> onLineTappedPlatform =
ArgumentCallbacks<String>();
final ArgumentCallbacks<String> onCircleTappedPlatform =
ArgumentCallbacks<String>();
final ArgumentCallbacks<String> onFillTappedPlatform =
ArgumentCallbacks<String>();
final ArgumentCallbacks<void> onCameraMoveStartedPlatform =
ArgumentCallbacks<void>();
final ArgumentCallbacks<CameraPosition> onCameraMovePlatform =
ArgumentCallbacks<CameraPosition>();
final ArgumentCallbacks<CameraPosition> onCameraIdlePlatform =
ArgumentCallbacks<CameraPosition>();
final ArgumentCallbacks<void> onMapStyleLoadedPlatform =
ArgumentCallbacks<void>();
final ArgumentCallbacks<Map<String, dynamic>> onMapClickPlatform =
ArgumentCallbacks<Map<String, dynamic>>();
final ArgumentCallbacks<Map<String, dynamic>> onMapLongClickPlatform =
ArgumentCallbacks<Map<String, dynamic>>();
final ArgumentCallbacks<MyLocationTrackingMode>
onCameraTrackingChangedPlatform =
ArgumentCallbacks<MyLocationTrackingMode>();
final ArgumentCallbacks<void> onCameraTrackingDismissedPlatform =
ArgumentCallbacks<void>();
final ArgumentCallbacks<void> onMapIdlePlatform = ArgumentCallbacks<void>();
final ArgumentCallbacks<UserLocation> onUserLocationUpdatedPlatform = ArgumentCallbacks<UserLocation>();
Future<void> initPlatform(int id) async {
throw UnimplementedError('initPlatform() has not been implemented.');
}
Widget buildView(
Map<String, dynamic> creationParams,
Function onPlatformViewCreated,
Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers) {
throw UnimplementedError('buildView() has not been implemented.');
}
Future<CameraPosition> updateMapOptions(
Map<String, dynamic> optionsUpdate) async {
throw UnimplementedError('updateMapOptions() has not been implemented.');
}
Future<bool> animateCamera(CameraUpdate cameraUpdate) async {
throw UnimplementedError('animateCamera() has not been implemented.');
}
Future<bool> moveCamera(CameraUpdate cameraUpdate) async {
throw UnimplementedError('moveCamera() has not been implemented.');
}
Future<void> updateMyLocationTrackingMode(
MyLocationTrackingMode myLocationTrackingMode) async {
throw UnimplementedError(
'updateMyLocationTrackingMode() has not been implemented.');
}
Future<void> matchMapLanguageWithDeviceDefault() async {
throw UnimplementedError(
'matchMapLanguageWithDeviceDefault() has not been implemented.');
}
Future<void> updateContentInsets(EdgeInsets insets, bool animated) async {
throw UnimplementedError('updateContentInsets() has not been implemented.');
}
Future<void> setMapLanguage(String language) async {
throw UnimplementedError('setMapLanguage() has not been implemented.');
}
Future<void> setTelemetryEnabled(bool enabled) async {
throw UnimplementedError('setTelemetryEnabled() has not been implemented.');
}
Future<bool> getTelemetryEnabled() async {
throw UnimplementedError('getTelemetryEnabled() has not been implemented.');
}
Future<List<Symbol>> addSymbols(List<SymbolOptions> options, [List<Map> data]) async {
throw UnimplementedError('addSymbols() has not been implemented.');
}
Future<void> updateSymbol(Symbol symbol, SymbolOptions changes) async {
throw UnimplementedError('updateSymbol() has not been implemented.');
}
Future<void> removeSymbols(Iterable<String> symbolsIds) async {
throw UnimplementedError('removeSymbol() has not been implemented.');
}
Future<Line> addLine(LineOptions options, [Map data]) async {
throw UnimplementedError('addLine() has not been implemented.');
}
Future<void> updateLine(Line line, LineOptions changes) async {
throw UnimplementedError('updateLine() has not been implemented.');
}
Future<void> removeLine(String lineId) async {
throw UnimplementedError('removeLine() has not been implemented.');
}
Future<Circle> addCircle(CircleOptions options, [Map data]) async {
throw UnimplementedError('addCircle() has not been implemented.');
}
Future<void> updateCircle(Circle circle, CircleOptions changes) async {
throw UnimplementedError('updateCircle() has not been implemented.');
}
Future<LatLng> getCircleLatLng(Circle circle) async {
throw UnimplementedError('getCircleLatLng() has not been implemented.');
}
Future<LatLng> getSymbolLatLng(Symbol symbol) async {
throw UnimplementedError('getSymbolLatLng() has not been implemented.');
}
Future<List<LatLng>> getLineLatLngs(Line line) async {
throw UnimplementedError('getLineLatLngs() has not been implemented.');
}
Future<void> removeCircle(String circleId) async {
throw UnimplementedError('removeCircle() has not been implemented.');
}
Future<Fill> addFill(FillOptions options, [Map data]) async {
throw UnimplementedError('addFill() has not been implemented.');
}
Future<void>updateFill(Fill fill, FillOptions changes) async {
throw UnimplementedError('updateFill() has not been implemented.');
}
Future<void> removeFill(String fillId) async {
throw UnimplementedError('removeFill() has not been implemented.');
}
Future<List> queryRenderedFeatures(
Point<double> point, List<String> layerIds, List<Object> filter) async {
throw UnimplementedError(
'queryRenderedFeatures() has not been implemented.');
}
Future<List> queryRenderedFeaturesInRect(
Rect rect, List<String> layerIds, String filter) async {
throw UnimplementedError(
'queryRenderedFeaturesInRect() has not been implemented.');
}
Future invalidateAmbientCache() async {
throw UnimplementedError(
'invalidateAmbientCache() has not been implemented.');
}
Future<LatLng> requestMyLocationLatLng() async {
throw UnimplementedError(
'requestMyLocationLatLng() has not been implemented.');
}
Future<LatLngBounds> getVisibleRegion() async {
throw UnimplementedError('getVisibleRegion() has not been implemented.');
}
Future<void> addImage(String name, Uint8List bytes,
[bool sdf = false]) async {
throw UnimplementedError('addImage() has not been implemented.');
}
Future<void> setSymbolIconAllowOverlap(bool enable) async {
throw UnimplementedError(
'setSymbolIconAllowOverlap() has not been implemented.');
}
Future<void> setSymbolIconIgnorePlacement(bool enable) async {
throw UnimplementedError(
'setSymbolIconIgnorePlacement() has not been implemented.');
}
Future<void> setSymbolTextAllowOverlap(bool enable) async {
throw UnimplementedError(
'setSymbolTextAllowOverlap() has not been implemented.');
}
Future<void> setSymbolTextIgnorePlacement(bool enable) async {
throw UnimplementedError(
'setSymbolTextIgnorePlacement() has not been implemented.');
}
Future<void> addImageSource(String imageSourceId, Uint8List bytes,
LatLngQuad coordinates) async {
throw UnimplementedError('addImageSource() has not been implemented.');
}
Future<void> removeImageSource(String imageSourceId) async {
throw UnimplementedError('removeImageSource() has not been implemented.');
}
Future<void> addLayer(String imageLayerId, String imageSourceId) async {
throw UnimplementedError('addLayer() has not been implemented.');
}
Future<void> addLayerBelow(String imageLayerId, String imageSourceId, String belowLayerId) async {
throw UnimplementedError('addLayerBelow() has not been implemented.');
}
Future<void> removeLayer(String imageLayerId) async {
throw UnimplementedError('removeLayer() has not been implemented.');
}
Future<Point> toScreenLocation(LatLng latLng) async{
throw UnimplementedError(
'toScreenLocation() has not been implemented.');
}
Future<List<Point>> toScreenLocationBatch(Iterable<LatLng> latLngs) async{
throw UnimplementedError(
'toScreenLocationList() has not been implemented.');
}
Future<LatLng> toLatLng(Point screenLocation) async{
throw UnimplementedError(
'toLatLng() has not been implemented.');
}
Future<double> getMetersPerPixelAtLatitude(double latitude) async{
throw UnimplementedError(
'getMetersPerPixelAtLatitude() has not been implemented.');
}
}