git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5021
ffa7fe5e-494d-0410-b361-
a75ebd5db220
int border;
int imperial;
int waypoints_flag;
int border;
int imperial;
int waypoints_flag;
+ struct coord_geo center;
struct attr **attr_list;
};
struct attr **attr_list;
};
navit_get_attr(struct navit *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
{
struct message *msg;
navit_get_attr(struct navit *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
{
struct message *msg;
int len,offset;
int ret=1;
int len,offset;
int ret=1;
case attr_callback_list:
attr->u.callback_list=this_->attr_cbl;
break;
case attr_callback_list:
attr->u.callback_list=this_->attr_cbl;
break;
+ case attr_center:
+ c=transform_get_center(this_->trans);
+ transform_to_geo(transform_get_projection(this_->trans), c, &this_->center);
+ attr->u.coord_geo=&this_->center;
+ break;
case attr_destination:
if (! this_->destination_valid)
return 0;
case attr_destination:
if (! this_->destination_valid)
return 0;