You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
-
### main
1
+
### 2.2.0-rc.1
2
2
3
3
* Expose `MapboxStyles.STANDARD_SATELLITE` style.
4
+
*`MapDebugOptions` is superseded by `MapWidgetDebugOptions`, expanding existing debug options with the new `light`, `camera`, and `padding` debug options in addition to the new Android-specific options: `layers2DWireframe` and `layers3DWireframe`.
Copy file name to clipboardExpand all lines: README.md
+23-19
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Mapbox Maps SDK Flutter SDK
2
2
3
-
The Mapbox Maps SDK Flutter SDK is an officially developed solution from Mapbox that enables use of our latest Maps SDK product (v11.6.0-beta.1). The SDK allows developers to embed highlycustomized maps using a Flutter widget on Android and iOS.
3
+
The Mapbox Maps SDK Flutter SDK is an officially developed solution from Mapbox that enables use of our latest Maps SDK product (v11.6.0-rc.1). The SDK allows developers to embed highly-customized maps using a Flutter widget on Android and iOS.
4
4
5
5
Web and desktop are not supported.
6
6
@@ -54,7 +54,7 @@ The Maps Flutter SDK is compatible with applications:
54
54
55
55
### Configure credentials
56
56
To run the Maps Flutter SDK you will need to configure the Mapbox Access Tokens.
57
-
Read more about access tokens and public/secret scopes at the platform [Android](https://docs.mapbox.com/android/maps/guides/install/#configure-credentials) or [iOS](https://docs.mapbox.com/ios/maps/guides/install/#configure-credentials) docs.
57
+
Read more about access tokens and public/secret scopes in the platform [Android](https://docs.mapbox.com/android/maps/guides/install/#configure-credentials) or [iOS](https://docs.mapbox.com/ios/maps/guides/install/#step-4-configure-your-public-token) docs.
58
58
59
59
#### Secret token
60
60
To access platform SDKs you will need to create a secret access token with the `Downloads:Read` scope and then:
@@ -69,6 +69,8 @@ To access platform SDKs you will need to create a secret access token with the `
69
69
password YOUR_SECRET_MAPBOX_ACCESS_TOKEN
70
70
```
71
71
72
+
To learn more about configuring your secret tokens for iOS, please see step 3 of the [configure credentials section](https://docs.mapbox.com/ios/maps/guides/install/#step-3-configure-your-secret-token) of the iOS Installation Guide.
73
+
72
74
#### Public token
73
75
You can set the access token for Mapbox Maps Flutter SDK(as well as for every Mapbox SDK) via `MapboxOptions`:
74
76
```
@@ -129,7 +131,7 @@ Add the following permissions to the manifest:
129
131
```
130
132
131
133
#### iOS
132
-
Add the following to the `Runner/Info.plist` to explain why you need access to the location data:
134
+
Add the following key/value pair to the `Runner/Info.plist`. In the value field, explain why you need access to location:
133
135
134
136
```
135
137
<key>NSLocationWhenInUseUsageDescription</key>
@@ -148,9 +150,9 @@ void main() {
148
150
```
149
151
150
152
#### MapWidget widget
151
-
The `MapWidget` widget provides options to customize the map - you can set `MapOptions`, `CameraOptions`, `styleURL` etc.
153
+
The `MapWidget` widget provides options to customize the map - you can set `MapOptions`, `CameraOptions`, `styleURL`, etc.
152
154
153
-
It also allows or add listeners for various events - related to style loading, map rendering, map loading.
155
+
You can also add listeners for various events related to style loading, map rendering, map loading.
154
156
155
157
#### MapboxMap controller
156
158
The `MapboxMap` controller instance is provided with `MapWidget.onMapCreated` callback.
@@ -188,16 +190,16 @@ class FullMapState extends State<FullMap> {
To observe the user's location and show the location indicator on the map use `LocationComponentSettingsInterface` accessible via `MapboxMap.location`.
192
194
193
-
To observe the user's location and show the location indicator on the map use `LocationComponentSettingsInterface` accessible via `MapboxMap.location`.
195
+
For more information, please see the User Location guides in our [Flutter](https://docs.mapbox.com/flutter/maps/guides/user-location), [Android](https://docs.mapbox.com/android/maps/guides/user-location/), and [iOS](https://docs.mapbox.com/ios/maps/guides/user-location/) documentation.
194
196
195
197
You need to grant location permission prior to using location component (as explained [before](#configure-permissions)).
196
198
197
199
### Location puck
198
200
To customize the appearance of the location puck call `MapboxMap.location.updateSettings` method.
199
201
200
-
To use the 3D puck with model downloaded from Uri instead of the default 2D puck:
202
+
To use the 3D puck with model downloaded from Uri instead of the default 2D puck:
Additional information is available in our [Flutter](https://docs.mapbox.com/flutter/maps/guides/markers-and-annotations/),[Android](https://docs.mapbox.com/android/maps/guides/annotations/), and [iOS](https://docs.mapbox.com/ios/maps/guides/annotations/) documentation.
214
216
215
217
You have several options to add annotations on the map.
216
218
217
-
1. Use the AnnotationManager APIs to create circle/point/polygon/polyline annotations.
219
+
1. Use the AnnotationManager APIs to create circle, point, polygon, and polyline annotations.
218
220
219
221
To create 5 point annotations using custom icon:
220
222
```
@@ -235,21 +237,21 @@ You can find more examples of the AnnotationManagers usage in the sample app : [
235
237
1. Use style layers. This will require writing more code but is more flexible and provides better performance for the large amount of annotations (e.g. hundreds and thousands of them). More about adding style layers in the [Map styles section](#map-styles).
Additional information is available in our [Flutter](https://docs.mapbox.com/flutter/maps/guides/styles/),[Android](https://docs.mapbox.com/android/maps/guides/styles/), and [iOS](https://docs.mapbox.com/ios/maps/guides/styles/) documentation.
239
241
240
242
The Mapbox Maps Flutter SDK allows full customization of the look of the map used in your application.
241
243
242
244
### Set a style
243
-
You can specify the initial style uri at `MapWidget.styleUri`, or load it at runtime using `MapboxMap.loadStyleURI` / `MapboxMap.loadStyleJson`:
245
+
You can specify the initial style uri at `MapWidget.styleUri`, or load it at runtime using `MapboxMap.loadStyleURI` / `MapboxMap.loadStyleJson`:
244
246
245
247
```
246
-
mapboxMap.loadStyleURI(Styles.LIGHT);
248
+
mapboxMap.loadStyleURI(Styles.LIGHT);
247
249
```
248
250
249
251
### Work with layers
250
-
You can familiarize with the concept of sources, layers and their supported types in the platform documentation.
252
+
You can familiarize with the concept of sources, layers and their supported types in the documentation for [Flutter](https://docs.mapbox.com/flutter/maps/guides/styles/work-with-layers), [iOS](https://docs.mapbox.com/ios/maps/guides/styles/work-with-layers/), and [Android](https://docs.mapbox.com/android/maps/guides/styles/work-with-layers/).
251
253
252
-
To add, remove or change a source or a layer use the `MapboxMap.style` object.
254
+
To add, remove or change a source or a layer, use the `MapboxMap.style` object.
253
255
254
256
To add a `GeoJsonSource` and a `LineLayer` using the source :
255
257
```
@@ -267,19 +269,21 @@ To add a `GeoJsonSource` and a `LineLayer` using the source :
267
269
268
270
### Using expressions
269
271
You can change the appearance of a layer based on properties in the layer's data source or zoom level.
270
-
Refer to the [documentation](https://docs.mapbox.com/mapbox-gl-js/style-spec/expressions/) for the description of supported expressions.
272
+
Refer to the [documentation](https://docs.mapbox.com/mapbox-gl-js/style-spec/expressions/) for the description of supported expressions. You can also learn more in the documentation for [Flutter](https://docs.mapbox.com/flutter/maps/guides/styles/style-layers#work-with-expressions), [iOS](https://docs.mapbox.com/ios/maps/guides/styles/style-layers/#work-with-expressions), and [Android](https://docs.mapbox.com/android/maps/guides/styles/style-layers/#work-with-expressions).
273
+
271
274
To apply an expression to interpolate gradient color to a line layer:
The camera is the user's viewpoint above the map. The Maps Flutter SDK provides you with options to set and adjust the camera position, listen for camera changes, get the camera position, and restrict the camera position to set bounds.
280
284
281
285
### Camera position
282
-
You can set the starting camera position using `MapWidget.cameraOptions`:
286
+
You can set the starting camera position using `MapWidget.cameraOptions`:
283
287
284
288
```
285
289
MapWidget(
@@ -316,7 +320,7 @@ To start a `flyTo` animation to the specific camera options :
316
320
You can find more examples of animations in the sample [app](example/lib/animation.dart).
0 commit comments