What is wrong in my style rules

Hi, what is wrong with these rules? When I activate the second rule I get a corrupted gmapsupp.img. (The first one is working ok). # Maxspeed (test) highway=* & ref=* & maxspeed > 1 { add display_name = '${ref} (${maxspeed})' } # highway=* & name=* & maxspeed > 1 { add display_name = '${name} (${maxspeed})' } # Set highway names to include the reference if there is one ... Greetings Chris

Am 19.11.2012 13:06, schrieb Chris66:
Hi, what is wrong with these rules?
When I activate the second rule I get a corrupted gmapsupp.img. (The first one is working ok).
# Maxspeed (test)
highway=* & ref=* & maxspeed > 1 { add display_name = '${ref} (${maxspeed})' }
# highway=* & name=* & maxspeed > 1 { add display_name = '${name} (${maxspeed})' }
# Set highway names to include the reference if there is one ... In general I think it's better to use set instead of add. I don't know what happens if you use add display_name if display_name already exists.
I would use: highway=* & maxspeed > 1 { set display_name='${ref} (${maxspeed})'|'${name} (${maxspeed})'|'(${maxspeed})' } Btw: How does display_name work? Henning

Am 19.11.2012 13:26, schrieb Henning Scholland:
When I activate the second rule I get a corrupted gmapsupp.img.
Corrupt means that the map looks like a map without Typfile.
In general I think it's better to use set instead of add. I don't know what happens if you use add display_name if display_name already exists.
Depends what the intention is. 'add' will only add something if not already set. Chris

Am 19.11.2012 13:06, schrieb Chris66:
what is wrong with these rules?
When I activate the second rule I get a corrupted gmapsupp.img. (The first one is working ok).
highway=* & ref=* & maxspeed > 1 { add display_name = '${ref} (${maxspeed})' }
# highway=* & name=* & maxspeed > 1 { add display_name = '${name} (${maxspeed})' }
display_name may only be used for highways with shields. Chris
participants (2)
-
Chris66
-
Henning Scholland