Using local map tiles

jki's picture

Here http://pastebin.com/JkFiKFtK is a simple patch to use locally stored TMS map tiles from gdal2tiles.pl in place of osm cloudmade.

It's not the greatest invention ever:
- tile path is not user configurable
- it does not fall back to OSM when a local tile is missing, which in my case is most of the time
- it replaces cloudmade (chose that one as it didn't seem to work and adding a new one would have been more work)
- it doesn't change the map name in menu

But it works for me.

To use OSM tiles instead of tiles from gdal2tiles.pl, one would remove the y coordinate flip line.

I had some problems building BT747_2.X.1968M_full.zip on Eclipse Juno under Ubuntu, this is what helped:

- file->new-project->java project from existing ant buildfile (build.xml), select build.j2seapp
- project->properties->java build path->add external JARs from oracle's javamail-1.4.5
- the same for /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/jsse.jar (for javax.net ssl)
- in BT747.java, comment out public class BT747 extends bt747.waba_view.AppBT747 { ... } (I was stuck with "bt747.waba_view cannot be resolved to a type")

But how do I get dist/BT747_j2se.jar? Always running from Eclipse is not quite ideal :)

Also, on a quick glance I couldn't find a way to configure GPS track color on the UI. Blue is not ideal on my tileset (I tried chancing the good & bad colors but they had no effect on UI).

Just wish to say your article

Just wish to say your article is as amazing.
The clarity in your post is simply nice and i can assume
you are an expert on this subject. Well with your permission let me to grab your feed to keep up to date with forthcoming post.
Thanks a million and please continue the enjoyable work.