hxmap

Overview
Download
Links
How to create new map

Forum


Overview

hxmap is wm2005 smartphone/wm2003 Pocket PC application for viewing map images.
Currently only map of Kiev, Ukraine is available.

App supports GPS position requests from GlobalSat TR-101 tracker[1].

App was tested on Motorola mpx200 with wm2005 and Samsung I750.


I'm not going to support this project; it already does what I need as is. If someone is willing to create other maps - full source code, tools and detailed instructions are availabe.

 


Download

Current version is 1.0. Map of Kiev, Ukraine - download.

How to install: unzip & copy to "\Program Files" directory on the phone.

Source code and tools - download.



Version history

Version 1.1
---------------------------
- added wm2003 Pocket PC support.

Version 1.0
---------------------------
- initial release


Links

Forum

http://www.globalsat.com.tw/

Back to main page.


How to create new map

haxmap is data-driven. You only need to replace .dt1 and .dt2 files to create new map. No programming required.

.dt1 is map description. This is text file in the following format:

------------------------ cut --------------------------
; map width in pixels, should be multiple of 256
11264
; map height in pixels, should be multiple of 256
9472
; map gps origin top left - x
30.31616073
; map gps origin top left - y
50.52924664
; map gps origin bottom right - x
30.71941656
; map gps origin bottom right - y
50.32526033
------------------------- cut --------------------------

Do not remove or add lines; change numbers only. Name this file "desc.txt", zip it, and rename to map.dt1.

Now map.dt2. Create a map image. It can be very large image, like 11264x9472.

Resize canvas, so dimentions are multiple of 256 (this is strict requirement!). Now we need to slice map image into 256x256 tiles, convert to png/gif and pack into dt2.

I recommend the following method to achieve good compression and nice quality:
- load map image into Photoshop CS2;
- apply smart blur 0.5/16 to remove jpeg artifacts;
- resize canvas to match 256x256 multiples;
- convert to indexed color, local(adaptive) 64 colors, no dither;
- create c:\slice directory;
- execute "slice256.jsx" script ("\slicer\slice256"). This script will slice image into 256x256 tiles, named mapXXX.bmp, and place them into "c:\slice\" directory;
- use batch action with "Save to web...", to convert all tiles into 8-bit png format. Also gif and jpg are supported;
- copy "\package\package.exe" into directory with png's;
- execute packer and press "Package" button. Tool will create map.dt2 in the same directory.

Now you have to replace map.dt1 and map.dt2 in hxmap directory - and new map is done.

 

Copyright (C) 2007 by Roman Lut

Rambler's Top100