mtmc 0.0.7 copy "mtmc: ^0.0.7" to clipboard
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 #

  1. Import the package in your Dart code:
import 'package:mtmc/mtmc.dart';
  1. 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
  ],
);
  1. 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.

0
likes
150
pub points
21%
popularity

Publisher

unverified uploader

Map Tile Memory Caching is used to store flutter map tile images on the device memory

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_map, path_provider

More

Packages that depend on mtmc