Skip to content

Using mapsforge offline maps in flutter_map #339

@moovida

Description

@moovida

Hi there. While mbtiles offline maps are great for some cases, for me it is necessary to have large offline maps on my device. For this I have used the mapsforge project, which has nicely compressed OSM data files in vector format, that can be converted in tiles. Just as an info, files of huge OSM info data are around 2 Giga, so they fit on any device.

That said, recently a port of mapsforge to flutter was done: https://github.com/mikes222/mapsforge_flutter

I tried to implementa tileprovider for that (I am prototyping a port of the geopaparazzi project) and the first results look good:
image

I found a couple of issues and was wondering if I could get some information:

  1. everytime I zoom in, the first result is a blurred map. When I then pan slightly (really just to say that it did pan), the map get's sharper. Here the same region before and after:

image

  1. On low zoom values, the mapsforge engine get's very slow. This makes the map view freeze completely. I wonder if there is a way to have the tiles loaded only once they are ready. Also I am not sure how to return nothing where there are no tiles. Should I create an empty image for that?

Thanks for any info you might give me and sure thanks for this great project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions