roostaamir
roostaamir

Reputation: 1968

how to use osmdroid's OSM MAP Tile Packager

I want to use the included tile packager from osmdroid's solution to use maps offline since Mobile Atlas Creator didn't work for me (I want 16x zoom levels which is not possible using this tool).

The instructions say that should run a .jar file using a command line, but there are no .jar files in the package and there are only source code files which when I run with netbeans IDE, gives me an error about unresolved dependency issues.

Anyone have any suggestions on how I can do this?

Upvotes: 2

Views: 1599

Answers (2)

kito
kito

Reputation: 181

The answer given here didn't work for me as the .jar file always gave me a manifest (main class) error. So what I ended up doing was:

  1. Download the project from github
  2. run a 'gradle build' in the top folder (you can comment out the included libraries in the settings.gradle file if there is any problem with the Android SDK and you only need to use the tile packager)
  3. run a 'gradle run' in the OSMMapTilePackager folder
  4. by now gradle should have generated the following folder: OSMMapTilePackager/build/distributions/ and inside that folder you should have a zip file called something like OSMMapTilePackager-5.6-SNAPSHOT.zip. Unzip it
  5. Go to the bin folder and run ./OSMMapTilePackager -gui

A window should have opened asking you for the parameters to download the tiles.

Got the procedure from this issue discussion.

Hope this helps anyone.

Upvotes: 4

satorikomeiji
satorikomeiji

Reputation: 469

Just call gradle compileJava in OSMMapTilePackager directory. The jar should be in the tagret directory.

Upvotes: 2

Related Questions