View Single Post
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#11
Originally Posted by theonelaw View Post
Now if I could just work out why I cannot get maps.txt to work...
If somebody facing this problem here could be an easy fix.

To be really sure that it will work it is a good idea to delete the folder which holds the maps.txt. Maybe some corrupt tile data or wrong maps.txt causes this error.

I will add a script which will reset and make a default maps.txt.
Run the script as user, when you have enough rights it deletes the /home/user/.gpxsee folder. Otherwise delete the folder as root.
This will wipe all tiles and map configurations. After this it recreates a working default status. Last line is to be really sure.

Code:
#!/bin/sh
DIR=/home/user/.gpxsee
if [ -d "$DIR" ]; then
rm -rf "$DIR"
fi
mkdir $DIR
map=Map1'	'http://a.tile.openstreetmap.org/\$z/\$x/\$y.png
printf '%s\n' "$map" > "$DIR"/maps.txt
chmod 755 "$DIR"/maps.txt
The attachment could be renamed and set to executable.
After running the script you could test the internet connection and start gpxsee. Hope it helps.
Attached Files
File Type: txt createmap.sh.txt (208 Bytes, 151 views)
 

The Following 2 Users Say Thank You to Halftux For This Useful Post: