Sarath Subramaniam
Sarath Subramaniam

Reputation: 61

Integrate mapbox with Flutter

Does anyone know if the framework Mapbox seamlessly works on Flutter (iOS and Android)? The feature I want in my app is turn-by-turn navigation, for which Mapbox does have Android and iOS SDK. The package that is available for this in Flutter https://pub.dev/packages/flutter_mapbox_navigation does have the ability, as per the docs, but doesn't work as expected in Android (I tried only in Android). There seems to be an open issue in their Github repository too - https://github.com/eopeter/flutter_mapbox_navigation/issues/98 which pulls me back from using this. Any thoughts?

Upvotes: 4

Views: 6943

Answers (2)

kapil sharma
kapil sharma

Reputation: 11

We already tried that plugin you will need to plugins to make complete working app. One is

https://github.com/tobrun/flutter-mapbox-gl

this repo is working on Map view activities.

whereas this plugin is essential for navigation view activities https://github.com/eopeter/flutter_mapbox_navigation/issues/98

both have different functionalities.

Right now issue is merging both of them.

eopeter is not maintaining repo anymore you can use. it is updated

https://github.com/csongorkeller/flutter_mapbox_navigation

The merging issue is resolved here at

https://github.com/messenger2011/flutter-mapbox-gl

Upvotes: 1

Sarvesh Dalvi
Sarvesh Dalvi

Reputation: 2708

Go through this blog : https://www.mapbox.com/blog/test-out-the-maps-plugin-for-flutter and try out the plugins they have provided

Below is the code to implement mapbox in your flutter app using mapbox_gl plugin :

MapboxOverlay(
  controller: MapboxOverlayController(),
  options: MapboxMapOptions(
    style: Style.dark,
    camera: new CameraPosition(
      target: LatLng(lat: 52.376316, lng: 4.897801),
      zoom: 15.0,
      bearing: 0.0,
      tilt: 0.0),
    ),
  )

You can also try this one : https://pub.dev/packages/mapbox_navigation

Upvotes: -1

Related Questions