flutter_map_firestore 0.0.2

  • README.md
  • Installing
  • Versions
  • 12


Firestore for Flutter Map Plugin: flutter_map


import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong/latlong.dart';
import 'package:flutter_map_firestore/flutter_map_firestore.dart';

class Map extends StatelessWidget {
  Widget build(BuildContext context) {
    return new FlutterMap(
      options: new MapOptions(
        plugins: [FirestoreMarkerPlugin()],
      layers: [
        new TileLayerOptions(
            urlTemplate: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
            subdomains: ['a', 'b', 'c']),
        new FirestoreMarkerLayerOptions(Firestore.instance.collection('markers'), //connect own firestore collection
            (document) {
          GeoPoint point = document["location"]; //use for example Firestore GeoPoint
          return Marker(
              width: 50.0,
              height: 50.0,
              point: LatLng(point.latitude, point.longitude),
              builder: (ctx) => new Container(
                    child: new FlutterLogo(),

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

[0.0.1] - Class renaming Release.

  • Rename Firebase to Firestore

[0.0.1] - Core Release.

  • Ability to manage markers by Firestore Database via Stream

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flutter_map_firestore: ^0.0.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_map_firestore/flutter_map_firestore.dart';
Version Uploaded Documentation Archive
0.0.2 Aug 21, 2018 Go to the documentation of flutter_map_firestore 0.0.2 Download flutter_map_firestore 0.0.2 archive
0.0.1 Aug 21, 2018 Go to the documentation of flutter_map_firestore 0.0.1 Download flutter_map_firestore 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <2.0.0