flutter_map_cancellable_tile_provider 3.0.1 copy "flutter_map_cancellable_tile_provider: ^3.0.1" to clipboard
flutter_map_cancellable_tile_provider: ^3.0.1 copied to clipboard

retracted

Plugin for flutter_map that provides a `TileProvider` with the capability to cancel unnecessary HTTP tile requests

flutter_map_cancellable_tile_provider #

Plugin for flutter_map that provides a TileProvider that fetches tiles from the network, with the capability to cancel unnecessary HTTP tile requests

Tiles that are removed/pruned before they are fully loaded do not need to complete (down)loading, and therefore do not need to complete the HTTP interaction. Cancelling these unnecessary tile requests early could:

  • Reduce tile loading durations (particularly on the web)
  • Reduce users' (cellular) data and cache space consumption
  • Reduce costly tile requests to tile servers*
  • Improve performance by reducing CPU and IO work

This provider uses 'dio', which supports aborting unnecessary HTTP requests in-flight, after they have already been sent.

Although HTTP request abortion is supported on all platforms, it is especially useful on the web - and therefore recommended for web apps. This is because the web platform has a limited number of simulatous HTTP requests, and so closing the requests allows new requests to be made for new tiles.
On other platforms, the other benefits may still occur, but may not be as visible as on the web.

Once HTTP request abortion is added to Dart's 'native' 'http' package (which already has a PR opened), NetworkTileProvider will be updated to take advantage of it, replacing and deprecating this provider. This tile provider is currently a separate package and not the default due to the reliance on the additional Dio dependency.

31
likes
0
pub points
97%
popularity

Publisher

verified publisherfleaflet.dev

Plugin for flutter_map that provides a `TileProvider` with the capability to cancel unnecessary HTTP tile requests

Homepage
Repository (GitHub)
View/report issues

Topics

#flutter-map #map

Documentation

Documentation

Funding

Consider supporting this project:

docs.fleaflet.dev

License

unknown (license)

Dependencies

dio, flutter, flutter_map, meta

More

Packages that depend on flutter_map_cancellable_tile_provider