]> mj.ucw.cz Git - leo.git/blobdiff - sym-text.c
Labeller: Backup before bisect
[leo.git] / sym-text.c
index f2f901e978270a7e364569750020842a0f483891..3188938a38fd151c92998fce6005a493b3cb7904 100644 (file)
@@ -227,6 +227,7 @@ static void prepare_text_element(struct sym_text *t, struct svg *svg)
 static void sym_text_draw(struct symbol *sym, struct svg *svg)
 {
   struct sym_text *t = (struct sym_text *) sym;
+printf("Drawing %s at [%.2f; %.2f]\n", osm_val_decode(t->text), t->x, t->y);
 
   if (t->next_duplicate)
     {
@@ -460,11 +461,13 @@ static void sym_text_center(struct osm_object *o, struct style_info *si, osm_val
   if (o->type == OSM_TYPE_WAY && !osm_way_cyclic_p((struct osm_way *) o))
   {
     //sym_plan(&st->s, sym_zindex(o, si, 4.9));
+    printf("[Sym] Labelling way %ju with %s\n", o->id, osm_val_decode(st->text));
     labeller_add_linelabel(&st->s, o, sym_zindex(o, si, 4.9));
   }
   else
   {
     //sym_plan(&st->s, sym_zindex(o, si, 4.9));
+    printf("[Sym] Labelling area %ju with %s\n", o->id, osm_val_decode(st->text));
     labeller_add_arealabel(&st->s, o, sym_zindex(o, si, 4.9));
   }
 }