fleaflet / flutter_map

A versatile mapping package for Flutter. Simple and easy to learn, yet completely customizable and configurable, it's the best choice for mapping in your Flutter app.
https://pub.dev/packages/flutter_map
BSD 3-Clause "New" or "Revised" License
2.76k stars 861 forks source link

Is it possible add open weather map layers to leaflet using flutter. #1001

Closed Gaushikmr closed 3 years ago

Gaushikmr commented 3 years ago

@ibrierley @Swepilot Could you just give an example pls. https://leafletjs.com/examples/layers-control/ to add this

Swepilot commented 3 years ago

@ibrierley @Swepilot Could you just give an example pls. https://leafletjs.com/examples/layers-control/ to add this

Sorry, I don't have any experience of working with that.

ibrierley commented 3 years ago

Break it down into steps, that way you will learn. I'm guessing you just want a layer toggle ?

First you want to create a button that you click that will toggle some variable. Once you get here, you are probably half way done. If you look into the examples folder, eg https://github.com/fleaflet/flutter_map/blob/master/example/lib/pages/interactive_test_page.dart you will see some examples to get you going. Have a play with a button, getting it position correctly, get it logging to the console when pressed.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 3 years ago

This issue was closed because it has been stalled for 5 days with no activity.