1

Hey guys...

I want to develop a full offline app, where the map data is included in the apk, for android (java). First I started using the mapbox sdk but unfortunately I noticed that they have a tile limitation of 6k Tiles and I couldn't figure out how to load OpenStreetMap data...

Now I used the osmand sdk to make the map show up with the markers and stuff... I didn't find a clear solution for my problem:

Say I have downloaded the data from https://openmaptiles.com/downloads/planet/ in .mbtiles how can I load the data from the asset folder to my device and show the map, so that someone can install the .apk and will have a full offline Map.

Or is there any "how to" tutorial for building a full offline map-app...

I also checked mapsforge but how I figured out, they focus more on rendering than on pre-loaded data or do I miss something there?

SO: 1. Tutorial to include .mbtiles or 2. Any Tutorial / tips to build full offline map...

Thanks a lot.

asked 09 Mar '19, 15:42

mathmike's gravatar image

mathmike
31113
accept rate: 0%

edited 09 Mar '19, 21:09

SimonPoole's gravatar image

SimonPoole ♦
40.0k13297634


2 Answers:
3

The correct answer really depends on what functionality you want to provide (which in turn tends to impact the offline data format).

For simply providing an offline map, mapsforge is a tried solution.

For completeness sake, https://wiki.openstreetmap.org/wiki/Frameworks#Displaying_interactive_maps is a list of relevant frameworks.

permanent link

answered 09 Mar '19, 19:50

SimonPoole's gravatar image

SimonPoole ♦
40.0k13297634
accept rate: 19%

edited 09 Mar '19, 21:08

Ok, so I definitely will work on mapsforge in that case.

Right now the needed functions are: -providing offlinemap -adding markers and user location (and some marker.OnClickListener) -reverse geocoding -would be nice to provide a full street directory

Is this possible with mapsforge?

(09 Mar '19, 20:41) mathmike
2

My knowledge here is as a user of OsmAnd not as a developer, but with that caveat in mind:

While OsmAnd can show tiles it primarily stores map data as *.obf files (it's own format) and renders the map from these files. If there is no file for the area you are interested in you can create one yourself with OsmAndMapCreator. There are then different styles within the application for how these should be displayed, for custom styles see links in this section of the OsmAnd wiki page.

permanent link

answered 09 Mar '19, 16:21

InsertUser's gravatar image

InsertUser
4.6k33683
accept rate: 21%

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×443
×167
×82
×33

question asked: 09 Mar '19, 15:42

question was seen: 1,756 times

last updated: 09 Mar '19, 21:09

powered by OSQA