… | |
… | |
377 | case attr_polyline: |
377 | case attr_polyline: |
378 | case attr_circle: |
378 | case attr_circle: |
379 | case attr_text: |
379 | case attr_text: |
380 | case attr_icon: |
380 | case attr_icon: |
381 | case attr_image: |
381 | case attr_image: |
|
|
382 | case attr_maptile: |
382 | case attr_arrows: |
383 | case attr_arrows: |
383 | itemgra->elements = g_list_append(itemgra->elements, attr->u.element); |
384 | itemgra->elements = g_list_append(itemgra->elements, attr->u.element); |
384 | return 1; |
385 | return 1; |
385 | default: |
386 | default: |
386 | dbg(0, "unknown: %s\n", attr_to_name(attr->type)); |
387 | dbg(0, "unknown: %s\n", attr_to_name(attr->type)); |
… | |
… | |
587 | e->type = element_image; |
588 | e->type = element_image; |
588 | |
589 | |
589 | return (struct image *) e; |
590 | return (struct image *) e; |
590 | } |
591 | } |
591 | |
592 | |
|
|
593 | struct maptile * |
|
|
594 | maptile_new(struct attr *parent, struct attr **attrs) |
|
|
595 | { |
|
|
596 | struct element *e; |
|
|
597 | |
|
|
598 | e = g_malloc0(sizeof(*e)); |
|
|
599 | e->type = element_maptile; |
|
|
600 | |
|
|
601 | return (struct maptile *) e; |
|
|
602 | } |
|
|
603 | |
592 | struct arrows * |
604 | struct arrows * |
593 | arrows_new(struct attr *parent, struct attr **attrs) |
605 | arrows_new(struct attr *parent, struct attr **attrs) |
594 | { |
606 | { |
595 | struct element *e; |
607 | struct element *e; |
596 | e = g_malloc0(sizeof(*e)); |
608 | e = g_malloc0(sizeof(*e)); |