How to use leaflet "openstreetmap" with flutter?

7,237

Solution 1

You can use flutter_map package for that. That's one of two most widely used maps packages (next to google_maps_flutter, which is obviously only for Google Maps).

https://github.com/johnpryan/flutter_map

It features all things that you need AFAIR.

Solution 2

You may check out the below Flutter Maps widget which allows you to render tiles from different services like OpenStreetMaps, Azure Maps, etc.

https://pub.dev/packages/syncfusion_flutter_maps

It has the features you have requested like markers, adding animations, drawing routes on the maps, highlight a region, etc. Check the below links for more details.

https://help.syncfusion.com/flutter/maps/markers

https://help.syncfusion.com/flutter/maps/vector-layers/polyline-layer#adding-polylines

Share:
7,237
Khalil LAABOUDI
Author by

Khalil LAABOUDI

Hi! I'm Khalil My name is Khalil Laaboudi I'm a 21 year old Software Engineer based in Casablanca/Morocco. I describe myself as a passionate developer who loves coding ,open source and creating new stuff that makes your life easy ❤️.

Updated on November 21, 2022

Comments

  • Khalil LAABOUDI
    Khalil LAABOUDI over 1 year

    I need help to integrate leaflet maps in flutter. The project I'm working on requires showing custom markers, animations, routes and drawings on the map. But I can't find any documentation or tutorials explaining this in flutter.

  • MojioMS
    MojioMS almost 3 years
    Dear googler, please notice: The flutter_map repository is licensed under BSD-3 clause!