osm_tile_fetcher 1.0.0
osm_tile_fetcher: ^1.0.0

Dart native
Flutter Android iOS

A Dart implementation of Open Street Map Tile Fetcher

example/example.dart

import 'package:osm_tile_fetcher/main.dart'
    show TileFetcher, TileGenerator, BoundingBox;

main() {
  /*var tileGenerator = TileGenerator(2);
  tileGenerator.tilesWithExtent()
    ..removeWhere((key, val) => !BoundingBox(-180, 0, 0, 90)
        .shouldFetchTile(BoundingBox(val[0], val[1], val[2], val[3])))
    ..forEach((key, val) {
      print('$key - $val');
    });*/
  var tileFetcher = TileFetcher(2, '.');
  tileFetcher
      .urlGenerator(BoundingBox(-180, -90, 0, 0))
      .forEach((String url) => print(url));
  /*tileFetcher.fetchTiles(BoundingBox(-180, 0, 0, 90)).listen(
        (data) => print(data),
        cancelOnError: true,
        onDone: () => print('Done'),
        onError: (e) => print('Error: $e'),
      );*/
}
0
likes
80
pub points
0%
popularity

A Dart implementation of Open Street Map Tile Fetcher

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

meanjanroy96@gmail.com

License

MIT (LICENSE)

Dependencies

path

More

Packages that depend on osm_tile_fetcher