{"id":19580206,"url":"https://github.com/xclud/flutter_map","last_synced_at":"2025-04-09T23:16:07.868Z","repository":{"id":41183422,"uuid":"242346727","full_name":"xclud/flutter_map","owner":"xclud","description":"Lightweight Map widget for flutter supporting different projections including EPSG4326/Mercator/WGS1984.","archived":false,"fork":false,"pushed_at":"2024-02-12T22:22:25.000Z","size":23087,"stargazers_count":135,"open_issues_count":4,"forks_count":30,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-09T23:16:02.346Z","etag":null,"topics":["cartography","dart","flutter","google-maps","map","maps","openstreetmap","vector-tiles"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/map","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xclud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-02-22T13:31:19.000Z","updated_at":"2025-04-05T07:23:18.000Z","dependencies_parsed_at":"2024-02-12T23:31:33.594Z","dependency_job_id":"64528771-f1a7-4451-8dd2-660a150b43ff","html_url":"https://github.com/xclud/flutter_map","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fflutter_map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fflutter_map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fflutter_map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fflutter_map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xclud","download_url":"https://codeload.github.com/xclud/flutter_map/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125591,"owners_count":21051770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cartography","dart","flutter","google-maps","map","maps","openstreetmap","vector-tiles"],"created_at":"2024-11-11T07:24:08.079Z","updated_at":"2025-04-09T23:16:07.845Z","avatar_url":"https://github.com/xclud.png","language":"Dart","readme":"[![pub package](https://img.shields.io/pub/v/map)](https://pub.dartlang.org/packages/map)\n[![likes](https://img.shields.io/pub/likes/map)](https://pub.dartlang.org/packages/map/score)\n[![points](https://img.shields.io/pub/points/map)](https://pub.dartlang.org/packages/map/score)\n[![popularity](https://img.shields.io/pub/popularity/map)](https://pub.dartlang.org/packages/map/score)\n[![license](https://img.shields.io/github/license/xclud/flutter_map)](https://pub.dartlang.org/packages/map)\n[![stars](https://img.shields.io/github/stars/xclud/flutter_map)](https://github.com/xclud/flutter_map/stargazers)\n[![forks](https://img.shields.io/github/forks/xclud/flutter_map)](https://github.com/xclud/flutter_map/network/members)\n[![sdk version](https://badgen.net/pub/sdk-version/map)](https://pub.dartlang.org/packages/map)\n\nLightweight and powerful geographical `Map` widget for Flutter, supporting different layers and projections including EPSG4326/Mercator/WGS1984.\n\n* Written entirely in Dart. No plugins, No platform code, No native code.\n\n* Map is vendor-free. Meaning that you can choose any tile provider of your choice. Google Maps, Mapbox, OSM Maps and Yandex Maps are a few to name. You can also use this package with your own custom tiles, your own server, your own [sub]domain.\n\n* Support for vector tiles is under development in [vt](https://pub.dev/packages/vt) and [cartography](https://pub.dev/packages/cartography) packages. Please checkout these packages to know more about the progress and open issues/tasks.\n\n* This package supports **caching** out of the box through [cached_network_image](https://pub.dev/packages/cached_network_image) and [flutter_cache_manager](https://pub.dev/packages/flutter_cache_manager) packages.\n\n## Demo\n\n[Web Demo](https://xclud.github.io/flutter_map/)\n\nThe web demo contains several examples demonstrating different aspects and usages of the project. From interactivity to polyline rendering.\n\nThe source code of the demo app is available in the `./example` project.\n\n## Donation\n\nIf you find this project useful, please support me by buying me a pizza 🍕.\n\nTron Address:\n\n```bash\nTLtrEU4KT2bn5J87VWfs1QDrmB1aFQ1bja\n```\n\nEthereum Address:\n\n```bash\n0xf8Da77e7BbE39be8c9e527289465Bf7219af58db\n```\n\nI do not accept Bitcoin due to its issues with sustainability and global warming.\n\n## Contributing\n\nI welcome contributions in all forms. One lightweight way you can contribute is to [tell me that you're using Map](https://github.com/xclud/flutter_map/discussions/41), which will give me warm fuzzy feelings 🤩.\n\n## Supported platforms\n\n* [✓] Android\n* [✓] iOS\n* [✓] Web\n* [✓] Windows\n* [✓] Linux\n* [✓] macOS\n* [✓] Flutter 3 is supported.\n\n## Getting Started\n\nIn your `pubspec.yaml` file add:\n\n```dart\ndependencies:\n  map: any\n```\n\nThen, in your code import:\n\n```dart\nimport 'package:map/map.dart';\n```\n\n```dart\nfinal controller = MapController(\n  location: const LatLng(Angle.degree(Angle.degree(0)), Angle.degree(Angle.degree(0))),\n  zoom: 2,\n);\n```\n\n```dart\nMapLayout(\n  controller: controller,\n  builder: (context, transformer) {\n    return TileLayer(\n      builder: (context, x, y, z) {\n        final tilesInZoom = pow(2.0, z).floor();\n\n        while (x \u003c 0) {\n          x += tilesInZoom;\n        }\n        while (y \u003c 0) {\n          y += tilesInZoom;\n        }\n\n        x %= tilesInZoom;\n        y %= tilesInZoom;\n\n        //Google Maps\n        final url =\n            'https://www.google.com/maps/vt/pb=!1m4!1m3!1i$z!2i$x!3i$y!2m3!1e0!2sm!3i420120488!3m7!2sen!5e1105!12m4!1e68!2m2!1sset!2sRoadmap!4e0!5m1!1e0!23i4111425';\n\n        return CachedNetworkImage(\n          imageUrl: url,\n          fit: BoxFit.cover,\n        );\n      },\n    );\n  },\n);\n```\n\nPlease check out the example project/tab for a working sample.\n","funding_links":[],"categories":["Components"],"sub_categories":["Map"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fflutter_map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxclud%2Fflutter_map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fflutter_map/lists"}