]> mj.ucw.cz Git - leo.git/blobdiff - sym-point.c
Poskole: Adjust map scale
[leo.git] / sym-point.c
index c7c2be0a01f8c470757ae9416c4dd387f2135e21..e8b32d9a56ac79375f6b08dc536838235607861b 100644 (file)
@@ -130,6 +130,12 @@ static void sym_icon_gen(struct osm_object *o, struct style_info *si, struct svg
   if (!osm_obj_center(o, &sir->x, &sir->y))
     return;
 
+  double dx = 0, dy = 0;
+  style_get_number(si, PROP_ICON_OFFSET_X, &dx);
+  style_get_number(si, PROP_ICON_OFFSET_Y, &dy);
+  sir->x += dx;
+  sir->y += dy;
+
   sir->width = icon->width;
   sir->height = icon->height;
   style_scale(si, &sir->width, &sir->height, PROP_ICON_WIDTH, PROP_ICON_HEIGHT);