View Single Post
Posts: 31 | Thanked: 2 times | Joined on Apr 2006 @ Vilnius, Lithuania
#85
Originally Posted by Demostenes
I've tried your patch, and it works great!.

The problem is that I want to maintain both systems (maps and topo) and I have to change URI prefix and directory of maps every time. I am working in which it can be two different definitions for URI/directory (maps and topo) and we could exchange easily among them. I hope to have something for tomorrow (it depends how fast i can learn to programme in maemo ) . I already have something, but it crash when change each other for two times.
That would be a nice feature to have.

In the meantime I've created two shell scripts that let me switch between street maps and sat maps while Maemo Mapper is not running. These scripts do two things: (1) change a symlink to the map directory and (2) change the map url with gconftool-2.

Code:
#!/bin/sh
# Ask Maemo Mapper to use satellite maps from Google
gconftool-2 -s /apps/maemo-mapper/map_uri_format -t string 'http://kh.google.com/kh?n=404&v=6&t=%s'
ln -sf /media/mmc1/maps/sat /home/user/apps/maemo-mapper
Code:
#!/bin/sh
# Ask Maemo Mapper to use street maps from Google
gconftool-2 -s /apps/maemo-mapper/map_uri_format -t string 'http://mt.google.com/mt?n=404&v=w2.11&x=%d&y=%d&zoom=%d'
ln -sf /media/mmc1/maps/street /home/user/apps/maemo-mapper