X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=sym-point.c;h=e8b32d9a56ac79375f6b08dc536838235607861b;hb=93398aff7bcfaa7f4213d255351383bf375d1ae3;hp=c7c2be0a01f8c470757ae9416c4dd387f2135e21;hpb=44b0ec8816c3cf1a5858fec0c51e075cedefc3eb;p=leo.git diff --git a/sym-point.c b/sym-point.c index c7c2be0..e8b32d9 100644 --- a/sym-point.c +++ b/sym-point.c @@ -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);