• Stars
    star
    116
  • Rank 303,894 (Top 6 %)
  • Language
    Dart
  • License
    MIT License
  • Created almost 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Lightweight Map widget for flutter supporting different projections including EPSG4326/Mercator/WGS1984.

pub package likes points popularity license stars forks sdk version

Lightweight and powerful geographical Map widget for Flutter, supporting different layers and projections including EPSG4326/Mercator/WGS1984.

  • Written entirely in Dart. No plugins, No platform code, No native code.

  • 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.

  • Support for vector tiles is under development in vt and cartography packages. Please checkout these packages to know more about the progress and open issues/tasks.

  • This package supports caching out of the box through cached_network_image and flutter_cache_manager packages.

Demo

Web Demo

The web demo contains several examples demonstrating different aspects and usages of the project. From interactivity to polyline rendering.

The source code of the demo app is available in the ./example project.

Donation

If you find this project useful, please support me by buying me a pizza 🍕.

Tron Address:

TLtrEU4KT2bn5J87VWfs1QDrmB1aFQ1bja

Ethereum Address:

0xf8Da77e7BbE39be8c9e527289465Bf7219af58db

I do not accept Bitcoin due to its issues with sustainability and global warming.

Contributing

I welcome contributions in all forms. One lightweight way you can contribute is to tell me that you're using Map, which will give me warm fuzzy feelings 🤩.

Supported platforms

  • [✓] Android
  • [✓] iOS
  • [✓] Web
  • [✓] Windows
  • [✓] Linux
  • [✓] macOS
  • [✓] Flutter 3 is supported.

Getting Started

In your pubspec.yaml file add:

dependencies:
  map: any

Then, in your code import:

import 'package:map/map.dart';
final controller = MapController(
  location: const LatLng(0, 0),
  zoom: 2,
);
MapLayout(
  controller: controller,
  builder: (context, transformer) {
    return TileLayer(
      builder: (context, x, y, z) {
        final tilesInZoom = pow(2.0, z).floor();

        while (x < 0) {
          x += tilesInZoom;
        }
        while (y < 0) {
          y += tilesInZoom;
        }

        x %= tilesInZoom;
        y %= tilesInZoom;

        //Google Maps
        final url =
            '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';

        return CachedNetworkImage(
          imageUrl: url,
          fit: BoxFit.cover,
        );
      },
    );
  },
);

Please check out the example project/tab for a working sample.

More Repositories

1

flutter_crop

Crop any widget/image in Android, iOS, Web and Desktop with fancy and customizable UI, in pure Dart code.
Dart
235
star
2

dart_wallet

Dart
16
star
3

dart_pos

Dart Implementation of the ISO-8583 banking protocol.
Dart
12
star
4

dart_kubernetes

Kubernetes client for Dart/Flutter.
Dart
10
star
5

dart_persian

Persian utilities for Dart and Flutter.
Dart
9
star
6

Bezier

C#
7
star
7

Materialium

Material Design Components for Web (MDC-Web) for ASP.NET Core 3.0 Razor Components.
C#
7
star
8

dart_tron

Dart API Library for interacting with the TRON Network through gRPC and Rest APIs.
Dart
6
star
9

dart_download

Cross-Platform file downloader for Dart and Flutter projects.
C++
6
star
10

dart_latlng

Geodesy and Geographical calculations for Dart.
Dart
5
star
11

dart_erc20

Interface of the ERC20 standard as defined in the EIP-20 Token Standard.
Dart
4
star
12

dart_serial

Wrapper around the `window.navigator.serial` for flutter web.
Dart
3
star
13

persian_flutter

Persian date picker, time picker and localization for flutter.
Dart
3
star
14

system-numerics-geometry

C#
2
star
15

dart_orbit

TLE and NORAD SGP4/SDP4/SGP8/SDP8 Implementation for Dart and Flutter.
Dart
2
star
16

dart_bidi

Implementation of the Bidi algorithm, as described in http://www.unicode.org/reports/tr9/tr9-17.html.
Dart
2
star
17

dart_zebra

Zebra is a barcode reader library for Flutter and Dart
Dart
2
star
18

flutter_vpn

Virtual Private Network (VPN) abstractions for Dart and Flutter.
Dart
1
star
19

Telegram

C#
1
star
20

csharp_orbit

C#
1
star
21

dart_crc

C++
1
star
22

dart_collision

Collision Detection and 2D geometry library for Dart and/or Flutter.
Dart
1
star
23

dart_eip55

Utility to convert an upper or lowercase Web3/Ethereum address to a checksum address (EIP55).
Dart
1
star
24

dart_protobuf_google

Dart
1
star
25

flutter_material

Dart
1
star
26

flutter_mafia

Dart
1
star
27

dart_ip2country

Standalone and fully offline IP-to-Country lookup table and CIDR prefix finder.
Dart
1
star
28

flutter_impeller

Dart
1
star