mtmc 0.0.7 mtmc: ^0.0.7 copied to clipboard
Map Tile Memory Caching is used to store flutter map tile images on the device memory
MTMC - Map Tile Memory Caching #
MTMC is a Flutter package designed to facilitate the storage of map tiles on the device memory. By caching map tiles locally, it enhances the performance and efficiency of map rendering in Flutter applications.
Features #
No license needed
.- Efficiently caches map tiles on the device memory for quick access and rendering.
- Seamless integration with Flutter Map package, enabling easy tile caching for map widgets.
- Reduces network requests by storing tiles locally, improving overall map loading speed.
- Customizable cache settings to tailor caching behavior according to application requirements.
Installation #
Add the following dependency to your pubspec.yaml
file:
dependencies:
mtmc: ^0.0.7
Then, run flutter pub get
to install the package.
Usage #
- Import the package in your Dart code:
import 'package:mtmc/mtmc.dart';
- Utilize the
MTMC
class as a tile provider in your Flutter Map widget:
FlutterMap(
options: MapOptions(
// Set other map options here
),
layers: [
TileLayerOptions(
urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
subdomains: ['a', 'b', 'c'],
tileProvider: MTMC(), // Use MTMC as the tile provider
),
// Add other map layers if needed
],
);
- Customize cache settings and behavior as per your application requirements using the provided classes and methods.
Example #
For a comprehensive example on how to integrate and utilize MTMC in your Flutter application, refer to the example
directory in this repository.
Contributions and Issues #
Contributions and feedback are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.
License #
This package is licensed under the MIT License. See the LICENSE file for details.
Feel free to tailor this template according to your specific package details and requirements. Make sure to replace placeholder URLs and information with actual details relevant to your package.