@@ -11,10 +11,9 @@ through all of them.
1111## General Information on Breaking Changes
1212
1313We 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:
2423By setting ` ^0.1.0 ` in your pubspec.yaml file pub will automatically resolve a
2524compatible 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.
4137Some properties and class names have changed. Replace the old with the new
4238names.
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.
0 commit comments