Maps on the A1200
I started off this morning by trying to put a NYC subway map on my A1200 so I could find the nearest entrance while out walking, and that lead to several hours of trying to figure out how to store and view large maps - so thought I would share what I learnt. This is not about using GPS, but if you want to create maps (or any large diagram for that matter) so you can view them on your phone then read on...
Viewer
First off, by far the easiest way to view small maps on the A1200 is simply to find a good detailed map in adobe *.pdf; *.png; *.gif, etc format. Copy it to your phone and use the inbuilt pixel Viewer to view it. With the zoom option (side buttons) it is very quick to find the section of the map you want to look at and then zoom in to read the street names. Attachment 1 and 2 are examples of a NYC subway map and a Madrid street map in these formats that work very well.
However, if you have a very large map, then Viewer does not handle them very well - it either runs out of memory or the map is poorly displayed (Try out the Florence map in attachment 3 for example - looks good on PC, but blurry in Viewer). So I searched for a program that would allow me to read large maps and found TrekBuddy does the trick. The latest version can be downloaded from www.trekbuddy.net. The catch is that the map has to be cut up into small 400 x 400 pixel pieces and the program stitches them all together - but there is a utility, tbcutter, that you can download to your PC that will do this for you in seconds.
April 18th UPDATE: After writing everything below on Trekbuddy, I came across a much better program called JTrustN StreetMaps. It is is much faster, simpler to use and has built-in zoom. The home page is jtrustn.byethost12.com. See post further down this for instructions on how to use it and examples.
Note - both Trekbuddy and JTrustN StreetMaps simply allows you to view a map on the phone. They do not allow you to search for Streets or anything else.
TrekBuddy - How to Install
1. Download the jar file and install it on your phone.
2. Once you have installed it, you need to edit its registry.txt file to allow it to read and write files. (See this thread for how to do this).
3. Run the app - by default it comes with a world map.
4. To get full screen, go to settings and select "Full Screen". I also unchecked the OS boxes to turn off the Latitude/Longitude bar at the top (see screen shot). You have to press on bottom menu and select "Save" to save your changes.
This program needs 3 sets of files to work (I will use Florence as an example. See Attachment 4 for the complete set of Florence files for reference and to get you started)
• Florence.map - file that contains the size of the map; plus its coordinates. (see code example below)
• Florence.set - file that contains a list of the names of all the files containing the cut up pieces
• set\ - directory that contains the cut up map files eg Florence_0_0.png, Florence_0_400.png,... etc.
Code:
Map Projection,Latitude/Longitude
Point01,xy,0,0,in,deg,90,0,N,180,0,W,grid,,,,N
Point02,xy,639,0,in,deg,90,0,N,180,0,E,grid,,,,N
IWH,Map Image Width/Height,1220,3300
Steps for creating a new Map:- Download the map you want to use to your PC. It can pretty much be in any format (bmp, tif, gif, jpeg, png, etc).
- Cut the map into pieces using tbcutter - see the section below for instructions. This tool creates both the xxx.set file and the set\ directory with all the small piece files.
- Create the xxx.map file. I found the easiest way is to copy an existing map file and rename it to same name as your new map. eg if you have a Florence.set, call the map file Florence.map.
Now if you really want to be accurate (or if you want to use this file with gps to locate where you are) then you would need to calibrate the map and change the latitude and longitude points so that they are accurate - but as I am using these just as maps then having the wrong coordinates does not impact using the map in any way.
The only thing you have to change is the last line - which indicates the size of the file in pixels. You can get this by looking at the cut up map. If the largest size piece is called "Rome_1200_3200.png" - then edit the file (using Wordpad not Notepad) and change the last line to "IWH,Map Image Width/Height,1200,3200".
[The map will actually be slightly bigger than this - so you will notice you may not be able to see the last little part of the map. You can always experiment and increase the numbers slightly until you are close (For the Florence map it ended up at 1220,3300). If you set them bigger than the map, then when you scroll to the edge of the map you will get a error msg when the app scrolls off the edge. ]
- Copy the 2 files and the directory to a directory on your SD card eg Maps\ so they are all together.
- Run TrekBuddy and open the Florence.map file and you will see the map.
Notes on Use:
1. There is only limited touch screen enabled. You have to use the joystick to scroll around the map which can be slow.
2. There is no zoom capability
3. If running in Full screen mode, you have to click on the red "end call" button two times to force bottom menu to be displayed.
4. If you touch very bottom left of screen with stylus, causes a Waypoint menu to be displayed where you can enter "markers" on the map. I was able to enter Waypoints - but with the hardkeys missing, was not able to jump to them so not much use.
5. If you touch very bottom right of screen it displays a Geo-caching screen - which is only useful if you have GPS. Return to map by touching in same spot.
If you want to know more there is a full user guide available for download in the TrekBuddy forum.
How to Cut a Map into Pieces- Cutting a map into pieces is surprisingly easy. Download the utility tbcutter tool from here and run it on your PC (No need to install it).
- Select the map you want to cut in the "Source bitmap" dropdown.
- Leave the Calibration File field blank
- Select the Tile width and Height - I found 400 x 400 works well.
- Leave everything else the same
- Press Start.
The program will chop up the map and create a set directory and write all the piece files to it; then will create the xxxx.set file.
Thats it - now all the files are ready to copy to your phone. Once you have got the hang of it the whole process only takes about 5 min to create a new map.