View Single Post
gnuite's Avatar
Posts: 1,245 | Thanked: 421 times | Joined on Dec 2005
#218
Originally Posted by t24 View Post
Thanks a lot ! I'll see what I can do with gpsfake, then .

Also, is there a way to change the "current location" that is stored in a file somewhere (when gps is off)? Then m-mapper will open up wherever I decide.
Maemo Mapper saves your current view location, regardless of what your GPS location is. If you want to tell Maemo Mapper the location on which it should center its view, there are two ways to do it.
  1. Set gconf settings prior to starting Maemo Mapper. The relevant gconf settings are as follows:
    • /apps/maemo/maemo-mapper/center_latitude
    • /apps/maemo/maemo-mapper/center_longitude
    • /apps/maemo/maemo-mapper/center_angle
    • /apps/maemo/maemo-mapper/zoom
  2. While Maemo Mapper is running, use Maemo Mapper's DBUS interface:
    • Service: com.gnuite.maemo_mapper
    • Path: /com/gnuite/maemo_mapper
    • Interface: com.gnuite.maemo_mapper
    • Method: set_view_center
    The arguments to the set_view_center method are all optional:
    1. gdouble new_lat;
    2. gdouble new_lon;
    3. gint new_zoom;
    4. gdouble new_viewing_angle;
    The details of Maemo Mapper's DBUS interface are in the dbus-ifc.h header file, available in the Subversion repository.