google_maps 3.2.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 84

Dart Google Maps

This project is a library to use Google Maps JavaScript API v3 from dart scripts.

Usage

To use this library in your code:

  • add a dependency in your pubspec.yaml :

    dependencies:
      google_maps: ">=3.0.0 <4.0.0"
    
  • add import in your dart code:

    import 'package:google_maps/google_maps.dart';
    
  • Include the Maps API JavaScript using a script tag before your dart script.

    <script src="https://maps.googleapis.com/maps/api/js?key=API_KEY"></script>
    

Please see the Google Maps JavaScript API v3 Getting Started guide for information about obtaining an API Key.

A very simple example :

import 'dart:html';

import 'package:google_maps/google_maps.dart';

void main() {
  final mapOptions = new MapOptions()
    ..zoom = 8
    ..center = new LatLng(-34.397, 150.644);
  new GMap(document.getElementById("map-canvas"), mapOptions);
}

Coverage

The library covers all Google Maps JavaScript API v3 and its Libraries. To use one or more Google Maps Library:

  • add import in your dart code:

    import 'package:google_maps/google_maps_LIBRARY1.dart';
    import 'package:google_maps/google_maps_LIBRARY2.dart';
    
  • Include the Maps API JavaScript using a script tag.

    <script src="http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=LIBRARY1,LIBRARY2"></script>
    

Examples

Examples found at https://google-developers.appspot.com/maps/documentation/javascript/examples/ are available in a dart version at https://github.com/a14n/dart-google-maps in the example directory.

License

Apache 2.0

v3.2.2 (2017-08-28)

  • Support some additions from Google Maps API 3.28

v3.2.1 (2017-06-20)

v3.2.0+2 (2017-01-16)

  • fix issue with mirrors and Dart2js (see http://dartbug.com/28371)

v3.2.0+1 (2016-11-16)

  • update to handle stricter markdown

v3.2.0 (2016-11-15)

  • use js_wrapping-0.3.0
  • no more generator dependencies grabbed

v3.1.0 (2015-12-17)

  • support of the Google Maps API 3.22

v3.0.2 (2015-06-16)

v3.0.1 (2015-06-12)

v3.0.0 (2015-06-05)

  • support of the Google Maps API 3.20
  • migration to js_wrapping-0.2.0

Semantic Version Conventions

http://semver.org/

  • Stable: All even numbered minor versions are considered API stable: i.e.: v1.0.x, v1.2.x, and so on.
  • Development: All odd numbered minor versions are considered API unstable: i.e.: v0.9.x, v1.1.x, and so on.

1. Depend on it

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


dependencies:
  google_maps: "^3.2.2"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:google_maps/google_maps.dart';
        
Version Uploaded Documentation Archive
3.2.2 Aug 28, 2017 Go to the documentation of google_maps 3.2.2 Download google_maps 3.2.2 archive
3.2.1 Jun 20, 2017 Go to the documentation of google_maps 3.2.1 Download google_maps 3.2.1 archive
3.2.0+2 Jan 16, 2017 Go to the documentation of google_maps 3.2.0+2 Download google_maps 3.2.0+2 archive
3.2.0+1 Nov 16, 2016 Go to the documentation of google_maps 3.2.0+1 Download google_maps 3.2.0+1 archive
3.2.0 Nov 15, 2016 Go to the documentation of google_maps 3.2.0 Download google_maps 3.2.0 archive
3.1.0 Dec 17, 2015 Go to the documentation of google_maps 3.1.0 Download google_maps 3.1.0 archive
3.0.2 Jun 16, 2015 Go to the documentation of google_maps 3.0.2 Download google_maps 3.0.2 archive
3.0.1 Jun 12, 2015 Go to the documentation of google_maps 3.0.1 Download google_maps 3.0.1 archive
3.0.0 Jun 8, 2015 Go to the documentation of google_maps 3.0.0 Download google_maps 3.0.0 archive
2.0.7 May 26, 2014 Go to the documentation of google_maps 2.0.7 Download google_maps 2.0.7 archive

All 38 versions...

Analysis

This feature is new.
We welcome feedback.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Dec 6, 2017
  • Dart: 2.0.0-dev.8.0
  • pana: 0.7.3+1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
90
Health:
Code health derived from static analysis. [more]
78
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall score:
Weighted score of the above. [more]
84

Platforms

Detected platforms:

Error(s) prevent platform classification.

Suggestions

  • Make sure dartfmt runs.

    Running dartfmt -n . failed with the following output:

    dartfmt on lib/ failed with exit code -15
    Exceeded timeout of 0:02:00.000000
    

Dependencies

Package Constraint Resolved Available
Direct dependencies
func ^0.1.0 0.1.1 1.0.0
js_wrapping ^0.4.1 0.4.2
meta ^1.0.3 1.1.2
Dev dependencies
browser ^0.10.0
html ^0.12.0
js_wrapping_generator ^0.4.1
test ^0.12.0