Skip to content

Commit ee5f508

Browse files
authored
docs: update changelog and migration guide (#94)
1 parent 881cf51 commit ee5f508

File tree

6 files changed

+56
-49
lines changed

6 files changed

+56
-49
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
to [3.24.0](https://medium.com/flutter/whats-new-in-flutter-3-24-6c040f87d1e4)
1313
(Minimum Dart version
1414
of [3.5.0](https://medium.com/dartlang/dart-3-5-6ca36259fa2f)).
15+
- Can't await the end of `animateCamera()` in this version.
1516

1617
Read the [Upgrade Guide](https://flutter-maplibre.pages.dev/docs/upgrade) for
1718
instructions on how to upgrade.

docs/docs/upgrade.md

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ through all of them.
1111
## General Information on Breaking Changes
1212

1313
We are using
14-
the [pub.dev version convention](https://dart.dev/tools/pub/versioning) for the
15-
package.
16-
17-
While the package is prior its `1.0.0` release, the following rules apply:
14+
the [pub.dev version convention](https://dart.dev/tools/pub/versioning#semantic-versions)
15+
for the package. While the package is prior its `1.0.0` release, the following
16+
rules apply:
1817

1918
- Every minor `0.x.0` release can introduce breaking changes.
2019
- Every increase of the patch value `0.0.x` adds new features and functionality.
@@ -24,9 +23,6 @@ While the package is prior its `1.0.0` release, the following rules apply:
2423
By setting `^0.1.0` in your pubspec.yaml file pub will automatically resolve a
2524
compatible package version but won't use the next breaking release `0.2.0`.
2625

27-
Read [Semantic versions](https://dart.dev/tools/pub/versioning#semantic-versions)
28-
for more information.
29-
3026
## Step-by-Step guide
3127

3228
### 1. Compatible Flutter Version
@@ -41,22 +37,22 @@ Run `flutter upgrade` to upgrade Flutter.
4137
Some properties and class names have changed. Replace the old with the new
4238
names.
4339

44-
| Old Name | New Name |
45-
|------------------------|-----------------------------|
46-
| controller.jumpTo() | controller.moveCamera() |
47-
| controller.flyTo() | controller.animateCamera() |
48-
| MapOptions(controls: ) | MapOptions(webControls: ) |
49-
| MapOptions(style: ) | MapOptions(initStyle: ) |
50-
| MapOptions(zoom: ) | MapOptions(initZoom: ) |
51-
| MapOptions(center: ) | MapOptions(initCenter: ) |
52-
| MapOptions(bearing: ) | MapOptions(initBearing: ) |
53-
| MapControl() | WebMapControl() |
54-
| ScaleControl() | WebScaleControl() |
55-
| LogoControl() | WebLogoControl() |
56-
| GeolocateControl() | WebGeolocateControl() |
57-
| FullscreenControl() | WebFullscreenControl() |
58-
| NavigationControl() | WebNavigationControl() |
59-
| mapCamera.tilt | mapCamera.pitch |
40+
| Old Name | New Name |
41+
|------------------------|----------------------------|
42+
| controller.jumpTo() | controller.moveCamera() |
43+
| controller.flyTo() | controller.animateCamera() |
44+
| MapOptions(controls: ) | MapOptions(webControls: ) |
45+
| MapOptions(style: ) | MapOptions(initStyle: ) |
46+
| MapOptions(zoom: ) | MapOptions(initZoom: ) |
47+
| MapOptions(center: ) | MapOptions(initCenter: ) |
48+
| MapOptions(bearing: ) | MapOptions(initBearing: ) |
49+
| MapControl() | WebMapControl() |
50+
| ScaleControl() | WebScaleControl() |
51+
| LogoControl() | WebLogoControl() |
52+
| GeolocateControl() | WebGeolocateControl() |
53+
| FullscreenControl() | WebFullscreenControl() |
54+
| NavigationControl() | WebNavigationControl() |
55+
| mapCamera.tilt | mapCamera.pitch |
6056

6157
### 3. Use the event system
6258

@@ -68,4 +64,11 @@ Check out the [Map Events](./events) documentation to see how you can use them.
6864
| onClick | MapEventClick |
6965
| onDoubleClick | MapEventDoubleClick |
7066
| onSecondaryClick | MapEventSecondaryClick |
71-
| onLongClick | MapEventLongClick |
67+
| onLongClick | MapEventLongClick |
68+
69+
### 4. Removed functionality
70+
71+
It is currently not possible to await the end of `controller.animateCamera()`
72+
because of deadlock issues with callbacks in jni.
73+
In the meantime, you have to rely on `MapEventCameraIdle` to detect once
74+
animation is finished.

docs/versioned_docs/version-0.1.0/upgrade.md

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ through all of them.
1111
## General Information on Breaking Changes
1212

1313
We are using
14-
the [pub.dev version convention](https://dart.dev/tools/pub/versioning) for the
15-
package.
16-
17-
While the package is prior its `1.0.0` release, the following rules apply:
14+
the [pub.dev version convention](https://dart.dev/tools/pub/versioning#semantic-versions)
15+
for the package. While the package is prior its `1.0.0` release, the following
16+
rules apply:
1817

1918
- Every minor `0.x.0` release can introduce breaking changes.
2019
- Every increase of the patch value `0.0.x` adds new features and functionality.
@@ -24,9 +23,6 @@ While the package is prior its `1.0.0` release, the following rules apply:
2423
By setting `^0.1.0` in your pubspec.yaml file pub will automatically resolve a
2524
compatible package version but won't use the next breaking release `0.2.0`.
2625

27-
Read [Semantic versions](https://dart.dev/tools/pub/versioning#semantic-versions)
28-
for more information.
29-
3026
## Step-by-Step guide
3127

3228
### 1. Compatible Flutter Version
@@ -41,22 +37,22 @@ Run `flutter upgrade` to upgrade Flutter.
4137
Some properties and class names have changed. Replace the old with the new
4238
names.
4339

44-
| Old Name | New Name |
45-
|------------------------|-----------------------------|
46-
| controller.jumpTo() | controller.moveCamera() |
47-
| controller.flyTo() | controller.animateCamera() |
48-
| MapOptions(controls: ) | MapOptions(webControls: ) |
49-
| MapOptions(style: ) | MapOptions(initStyle: ) |
50-
| MapOptions(zoom: ) | MapOptions(initZoom: ) |
51-
| MapOptions(center: ) | MapOptions(initCenter: ) |
52-
| MapOptions(bearing: ) | MapOptions(initBearing: ) |
53-
| MapControl() | WebMapControl() |
54-
| ScaleControl() | WebScaleControl() |
55-
| LogoControl() | WebLogoControl() |
56-
| GeolocateControl() | WebGeolocateControl() |
57-
| FullscreenControl() | WebFullscreenControl() |
58-
| NavigationControl() | WebNavigationControl() |
59-
| mapCamera.tilt | mapCamera.pitch |
40+
| Old Name | New Name |
41+
|------------------------|----------------------------|
42+
| controller.jumpTo() | controller.moveCamera() |
43+
| controller.flyTo() | controller.animateCamera() |
44+
| MapOptions(controls: ) | MapOptions(webControls: ) |
45+
| MapOptions(style: ) | MapOptions(initStyle: ) |
46+
| MapOptions(zoom: ) | MapOptions(initZoom: ) |
47+
| MapOptions(center: ) | MapOptions(initCenter: ) |
48+
| MapOptions(bearing: ) | MapOptions(initBearing: ) |
49+
| MapControl() | WebMapControl() |
50+
| ScaleControl() | WebScaleControl() |
51+
| LogoControl() | WebLogoControl() |
52+
| GeolocateControl() | WebGeolocateControl() |
53+
| FullscreenControl() | WebFullscreenControl() |
54+
| NavigationControl() | WebNavigationControl() |
55+
| mapCamera.tilt | mapCamera.pitch |
6056

6157
### 3. Use the event system
6258

@@ -68,4 +64,11 @@ Check out the [Map Events](./events) documentation to see how you can use them.
6864
| onClick | MapEventClick |
6965
| onDoubleClick | MapEventDoubleClick |
7066
| onSecondaryClick | MapEventSecondaryClick |
71-
| onLongClick | MapEventLongClick |
67+
| onLongClick | MapEventLongClick |
68+
69+
### 4. Removed functionality
70+
71+
It is currently not possible to await the end of `controller.animateCamera()`
72+
because of deadlock issues with callbacks in jni.
73+
In the meantime, you have to rely on `MapEventCameraIdle` to detect once
74+
animation is finished.

example/web/favicon-32x32.png

1.04 KB
Loading

example/web/favicon.png

-917 Bytes
Binary file not shown.

example/web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<link rel="apple-touch-icon" href="icons/Icon-192.png">
2828

2929
<!-- Favicon -->
30-
<link rel="icon" type="image/png" href="favicon.png"/>
30+
<link rel="icon" type="image/png" href="favicon-32x32.png"/>
3131

3232
<!-- MapLibre -->
3333
<script src='https://unpkg.com/maplibre-gl@^4.3/dist/maplibre-gl.js'></script>

0 commit comments

Comments
 (0)