搜索插件、代码仓与 APP 分类

插件详情v2.1.2

flutter_map_cache

一个轻量但功能强大的 flutter_map 图块图层缓存插件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
2.4万
喜欢数
39
Pub 分数
160

安装插件

flutter pub add flutter_map_cache

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

flutter_map_cache 是一个轻量且高效的缓存插件,专为 flutter_map 库中的图块图层设计。它通过将下载的地图图块本地存储来提升性能,减少重复的网络请求并加快加载速度。该插件与 flutter_map 无缝集成,支持所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。只需最少的配置,即可提供可靠的缓存功能,而不会给现有的地图实现增加复杂性。

适合场景

  • 缓存地图瓦片以减少带宽使用
  • 提高离线地图性能
  • 加快重复地图视图加载
  • 减少重复瓦片请求对服务器的负载
  • 在低连接性区域提升用户体验

主要特点

  • 最小开销和小尺寸
  • 自动缓存管理
  • 跨平台兼容性
  • 与 flutter_map 的无缝集成
  • 同时支持内存和磁盘缓存

适合对象

  • 开发地图密集型应用的开发者
  • 需要离线或低带宽地图访问的应用程序
  • 旨在优化地图性能的项目
  • 使用 flutter_map 进行地理空间数据可视化的团队
  • 面向多个平台的应用程序

使用建议

  • 应监控缓存大小,以避免过度使用存储空间
  • 清除缓存可能需要更新的地图数据
  • 不适用于实时动态瓦片更新
  • 需要正确处理缓存过期策略
  • 大规模部署可能需要额外的配置

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Plugins for the flutter_map ecosystem 🗺️

This repository contains multiple flutter packages that extend the functionality of flutter_map.

stars codecov GitHub last commit Issues Open PRs

Packages

flutter_map_cache

Pub Version likes Pub Downloads

A slim yet powerful caching plugin for flutter_map tile layers. Supports any storage backend you would possibly want.

  • This package fills the gap between dio_cache_interceptor and flutter_map.
  • Support for tile cancellation
flutter_map_compass

Pub Version likes Pub Downloads

A compass for flutter_map that indicates the map rotation. It rotates the map back to north on top when clicked.

flutter_map_maplibre

Pub Version likes Pub Downloads

Performant Mapbox Vector Tiles (MVT) support for flutter_map powered by native MapLibre SDKs.

flutter_map_mbtiles

Pub Version likes Pub Downloads

This package provides the MbTilesTileProvider that can be used with flutter_map tile layers.

  • This package uses mbtiles under the hood for the MBTiles support.
  • MBTiles is a file format to store map tiles in a single SQLite database.
flutter_map_pmtiles

Pub Version likes Pub Downloads

This package provides the PmTilesTileProvider that can be used with flutter_map tile layers.

  • This package uses pmtiles under the hood for the PMTiles support.
  • PMTiles is an open archive format for pyramids of tile data, accessible via HTTP Range Requests. Head over to protomaps.com to learn more about PMTiles.
vector_map_tiles_mbtiles

Pub Version likes Pub Downloads

This package provides the MbTilesVectorTileProvider that can be used with the vector_map_tiles which itself adds support for vector tiles to flutter_map.

  • This package uses mbtiles under the hood for the MBTiles support.
  • MBTiles is a file format to store map tiles in a single SQLite database.
vector_map_tiles_pmtiles

Pub Version likes Pub Downloads

This package provides the PmTilesVectorTileProvider that can be used with the vector_map_tiles which itself adds support for vector tiles to flutter_map.

  • This package uses pmtiles under the hood for the PMTiles support.
  • PMTiles is an open archive format for pyramids of tile data, accessible via HTTP Range Requests. Head over to protomaps.com to learn more about PMTiles.

Contributions

A huge thanks to all contributors! 😎

List of contributors

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目