liodali / osm_flutter

OpenStreetMap plugin for flutter
https://pub.dev/packages/flutter_osm_plugin
MIT License
229 stars 96 forks source link

[Feature Reuqest] Offline maps #65

Open selankon opened 3 years ago

selankon commented 3 years ago

Hi,

I would like to use this plugin on my app, but we would like to have the possibility to have offline maps.

I'm not sure of how difficult is to implement this, maybe we can help on that if you have an idea of how to do it...

Thanks in advance

liodali commented 3 years ago

Hi, for android, osmdroid already support offline mode but limited to data downloaded but here is resource : https://github.com/johnjohndoe/OSMDroidOfflineDemo for iOS it little bit difficult because i need to see the sdk that i will use if it support offline mode or not also if you can share with me specific use case that we can find together good solution to support offline mode

selankon commented 3 years ago

Thanks to show us osmdroid, but is written in java. Do you think that maybe we can use osmdroid code from flutter? Probably there are an option... :thinking:

Well, probably the idea is do something like osmand does: from a list of regions download a map data to use it offline. We only want to support Android for the moment.

So, I see following solutions:

liodali commented 3 years ago

I'm using osmdroid in this plugin and like I told you its already supported by osmdroid maybe it will another idea for new plugin but just you need to add in your application list of region that user will pick specific location and application will download them in the specific location and the map will be available in offline mode

selankon commented 3 years ago

Oh I didn't understand that you use osmdroid. So, this plugin won't be javascript compilable? Right?

but just you need to add in your application list of region that user will pick specific location and application will download them in the specific location and the map will be available in offline mode

You mean that we have to implement how automatize this. And what about different zoom level tiles?

Thanks for clarifications

liodali commented 3 years ago

it's depend on the osm data that will be used if it contain different zoom level it will work normal for now , web is not supported but it will be supported soon

selankon commented 3 years ago

Thanks for your work. We appreciate it.

We hope to start developing soon using your plugin :)

vedranivicatos commented 2 years ago

for iOS it little bit difficult because i need to see the sdk that i will use if it support offline mode or not

Is there any progress on the offline maps feature for iOS?

zigapovhe commented 2 years ago

@liodali Any progress on offline iOS maps? We would need that till the end of this year.

maltub9 commented 1 year ago

I need offline maps any idea

zigapovhe commented 1 year ago

I need offline maps any idea

I would love to use this package, but since it is missing offline functionality, I've used this one: https://docs.fleaflet.dev/ And I'm pretty happy with the result.

liodali commented 1 year ago

offline only available on android because ios side we re using another sdk doesnt support that feature