User:Manuska

From OpenStreetMap Wiki
Jump to navigation Jump to search

Mapnik with TrackMyJourney

In order to use self made maps in TrackMyJourney I edited Mapnik's generate_tiles.py file.

I changed

 tile_uri = tile_dir + zoom + '/' + str_x + '/' + str_y + '.png'

to

 tile_uri = tile_dir + 'z' + zoom + '/r' + str_y + '/c' + str_x + '.png'

and of course altered created dirs accordingly. Then I linked Mapnik's tile dir to TMJ Organizer's cache dir.