mapbox_plugin 1.0.4

  • Readme
  • Changelog
  • Example
  • Installing
  • 64

Mapbox PLUGIN Native #

Ce plugin Flutter pour mapbox-plugin permet d’intégrer des cartes vectorielles interactives et personnalisables dans un widget Flutter en incorporant des vues Android et iOS.

screenshot.png

Installer #

Ce projet est disponible sur pub.dartlang. Suivez les instructions pour intégrer un package dans votre application Flutter.

Exécution de l'exemple d'application #

  • Installez Flutter et validez son installation avecflutter doctor
  • Cloner ce référentiel avec git clone https://github.com/BorisGautier/mapbox_plugin.git
  • Exécutez l'application avec cd mapbox_plugin/example && flutter run

Mapbox Access Token #

Ce projet utilise des tuiles vecteur MapBox, ce qui nécessite un compte MapBox et un jeton d'accès MapBox. Obtenez un jeton d'accès gratuit sur la page de votre compte Mapbox.

Android #

Une fois la clé obtenue, placez-la dans le répertoire Android du projet: android/app/src/main/AndroidManifest.xml:

  <application ...
    <meta-data android:name="com.mapbox.token" android:value="YOUR_TOKEN_HERE" />

iOS #

Ajoutez ces lignes à votre info.plist

<key>io.flutter.embedded_views_preview</key>
<true/>
<key>MGLMapboxAccessToken</key>
<string>YOUR_TOKEN_HERE</string>

v1.0.2, Octobre 18, 2019 #

  • Ajout des marqueurs

v0.0.9, Octobre 17, 2019 #

  • Mettre à jour la base de code sur AndroidX
  • Mettre à jour Mapbox Maps SDK pour Android vers la dernière version

v0.0.5, Octobre 17, 2019 #

  • Migration vers les systèmes SDK View Android
  • Style URL API
  • Style JSON API (Android)
  • soutien Gesture
  • Restrictions gestuelles (Android)
  • API de symboles (Android)
  • Composant de localisation (Android)
  • API de la caméra (Android)

v0.0.1, Octobre 17, 2019 #

  • Initialisation de la carte Android

example/README.md

mapbox_plugin_example #

Demonstrates how to use the mapbox_plugin plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

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


dependencies:
  mapbox_plugin: ^1.0.4

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:mapbox_plugin/mapbox_plugin.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
28
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
64
Learn more about scoring.

We analyzed this package on Nov 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/src/bitmap.dart.

Run flutter format to format lib/src/bitmap.dart.

Format lib/src/controller.dart.

Run flutter format to format lib/src/controller.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test