Skip to content

Commit 89eaec0

Browse files
authored
Fixed bug (JaffaKetchup#17)
1 parent 1d98c86 commit 89eaec0

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [3.0.1] - 2021/07/20
4+
5+
* Fix bug #17 (on GitHub)
6+
* Removed an invalid example
7+
* Updated README
8+
39
## [3.0.0] - 2021/07/04
410

511
* Last quick fixes

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,9 @@ Please note that this library has not been tested on iOS devices, so issues may
4343

4444
## Example
4545

46-
To view the example project, just clone the .zip file in the example folder and unzip it to a local directory. You should be able to run it instantly on Android - iOS will require extra setup. Beware, this solution may be older than the latest example.
46+
To view the example project, create a new project and copy/replace the existing 'main.dart' file with the 'main.dart' file from this project's example folder. Then add this library to the 'pubspec.yaml' file. Finally, follow the platform-specific installation instructions above to get your app to build successfully.
4747

48-
For the latest example, but no other code or build settings, just clone the main.dart file in the example folder to a local project, and import this library and `flutter_map` in the pubspec.yaml file.
49-
50-
Alternatively, if you just want to see how it works in real life, you can run the example app on an Android device by installing the APK file found in the 'example' directory.
48+
Alternatively, if you just want to see how it works quickly, you can run the example app on an Android device by installing the APK file found in the 'example' directory. Note, however, that this file may be a few versions old.
5149

5250
## Functionality
5351

@@ -83,8 +81,7 @@ This will be worked on in the future to bring better functionality.
8381
### Migrate to v3 from v2
8482

8583
Unfortunately, because so much has changed, the best way to migrate is to rewrite the appropriate areas of your project with the new features.
86-
I've tried to make v3 super easy to understand and use, even with all the new functionality, so I hope you don't find this too hard.
87-
I cannot foresee another update as big as this any time in the future, so hopefully future major releases shouldn't need 'migrating' as such. I'm always planning functionality however!
84+
I've tried to make v3 super easy to understand and use, even with all the new functionality, so I hope you don't find this too hard. Unfortunatley, the next major release may also require a large migration, as this library 'fully matures'.
8885

8986
## Offline/Caching Behaviour
9087

-2.23 MB
Binary file not shown.

lib/src/main.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,11 @@ class StorageCachingTileProvider extends TileProvider {
433433
..z = coord.z.toDouble();
434434
url = getTileUrl(coordDouble, options);
435435
final bytes = (await client.get(Uri.parse(url))).bodyBytes;
436-
await TileStorageCachingManager.saveTile(bytes, coord);
436+
await TileStorageCachingManager.saveTile(
437+
bytes,
438+
coord,
439+
cacheName: cacheName,
440+
);
437441
} catch (e) {
438442
errorHandler(url, e);
439443
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: flutter_map_tile_caching
22
description: Plugin for flutter_map to provide an easy way to cache tiles and
33
download map regions for offline use.
4-
version: 3.0.0
4+
version: 3.0.1
55
repository: https://github.com/JaffaKetchup/flutter_map_tile_caching
66
documentation: https://github.com/JaffaKetchup/flutter_map_tile_caching/blob/main/README.md
77
issue_tracker: https://github.com/JaffaKetchup/flutter_map_tile_caching/issues

0 commit comments

Comments
 (0)