// sir->opacity = 1;
// style_get_number(si, PROP_ICON_OPACITY, &sir->opacity);
- labeller_add_point(&sic->s, o, sym_zindex(o, si, 4));
- //sym_plan(&sic->s, sym_zindex(o, si, 4));
+ switch (o->type)
+ {
+ case OSM_TYPE_NODE:
+ labeller_add_point(&sic->s, o, sym_zindex(o, si, 4));
+ break;
+ case OSM_TYPE_WAY:
+ if (!osm_way_cyclic_p((struct osm_way *) o))
+ {
+ labeller_add_linelabel(&sic->s, o, sym_zindex(o, si, 4));
+ break;
+ }
+ case OSM_TYPE_MULTIPOLYGON:
+ labeller_add_arealabel(&sic->s, o, sym_zindex(o, si, 4));
+ break;
+ }
}
struct symbolizer symbolizer_icon = {