Using local map tiles

jki's picture

Here is a simple patch to use locally stored TMS map tiles from 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, one would remove the y coordinate flip line.

I had some problems building 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- (for ssl)
- in, 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.

Post new comment

(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br>
  • Lines and paragraphs break automatically.
  • Use the special tag [adsense:format:slot] or [adsense:format:[group]:[channel][:slot]] or [adsense:block:location] to display Google AdSense ads.
  • Images can be added to this post.

More information about formatting options