if (map_goto_position(&_home)==FALSE) {
MACRO_BANNER_SHOW_INFO(_window, _("Home not set."));
} else {
- map_set_zoom(3);
+ if (map_get_zoom()>3)
+ map_set_zoom(3);
MACRO_BANNER_SHOW_INFO(_window, _("At home location"));
}
return TRUE;
MACRO_QUEUE_DRAW_AREA();
}
+guint
+map_get_zoom(void)
+{
+return _zoom;
+}
+
/**
* Set the current zoom level. If the given zoom level is the same as the
* current zoom level, or if the new zoom is invalid
gboolean map_key_zoom_timeout();
int map_zoom(gint zdir);
+guint map_get_zoom(void);
+void map_set_zoom(guint zoom);
+
gboolean map_zoom_in(void);
gboolean map_zoom_out(void);
void map_set_autozoom(gboolean az, gfloat speed);