
Hi, I'm hoping to be able to render site relations in a way that would make them more visible. I have used them several times to group related objects but the names don't show when I compile my maps. Usually the sites I've tagged have been a group of buildings that are members of a named apartment complex, however, the names don't show up on my maps. Currently, there is no mention of type=site in my relations style file other than an echotags argument I inserted to indicate their presence. Another issue I have with relations is in tagging multipolygons, usually groups of lakes that have a single name. These do not display a name either. My relation file is the default mkgmap style which deals only with boundaries and transportation routes. Can anyone help explain how I can get this functionality? Thanks, Dave -- Dave Swarthout Homer, Alaska Chiang Mai, Thailand Travel Blog at http://dswarthout.blogspot.com

Hi Dave, you can transfer tags from a relation to its objects. Look for "apply" rule in style-manual.pdf . -- Best regards, Andrzej

Thanks, Andrzej, I don't understand what you're saying. You're telling me to transfer the name tag from my site relation to the objects it contains. But how do I tell from within mkgmap what the objects are? I added this line to my relation style file but nothing happened. The members of this relation are buildings. How to apply the name to them? Should I add some rules to the polygons style file? type=site & name=* { apply {set name='$(name)'; } } On Mon, Oct 10, 2016 at 5:43 PM, Andrzej Popowski <popej@poczta.onet.pl> wrote:
Hi Dave,
you can transfer tags from a relation to its objects. Look for "apply" rule in style-manual.pdf .
-- Best regards, Andrzej _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Dave Swarthout Homer, Alaska Chiang Mai, Thailand Travel Blog at http://dswarthout.blogspot.com

Hi Dave, your rule looks good except you should use curly brackets. '${..}' means tag from relation while '$(..)' is a tag from member of relation. Try for example: type=site & name=* { apply {add name='${name}';} } Or you can concatenate site name with building name, if exist: type=site & name=* { apply_once { set name='$(name) - ${name}' | '${name}'; } } -- Best regards, Andrzej

Awesome! That did the trick. I will try that next for my multipolygon lakes. Many thanks Andrzej On Mon, Oct 10, 2016 at 9:22 PM, Andrzej Popowski <popej@poczta.onet.pl> wrote:
Hi Dave,
your rule looks good except you should use curly brackets. '${..}' means tag from relation while '$(..)' is a tag from member of relation. Try for example:
type=site & name=* { apply {add name='${name}';} }
Or you can concatenate site name with building name, if exist:
type=site & name=* { apply_once { set name='$(name) - ${name}' | '${name}'; }
}
-- Best regards, Andrzej _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Dave Swarthout Homer, Alaska Chiang Mai, Thailand Travel Blog at http://dswarthout.blogspot.com
participants (2)
-
Andrzej Popowski
-
Dave Swarthout