
Hi all, I'm facing a very strange problem with the style function delete. in the points file I have the following rule In the past this removed unwanted labels on post boxes in the map. Since quite some time, I assume since the change to the new style rules a few month ago, the labels re-appeared in the map. I tried many different things to get rid of them but I always failed. Any Idea what's going wrong here ? I composed a testcase for the bug, sample osm data and style is included: happens everywhere but my testcase is located here <http://www.openstreetmap.org/?mlat=47.87609&mlon=10.62906#map=19/47.87609/10.62906> Download Testcase <http://files.mkgmap.org.uk/download/205/delete_name_bug_testcase.tgz> here's a screenshot of a "points only" map from the testcase <http://gis.19327.n5.nabble.com/file/n5804145/102.bmp> -- View this message in context: http://gis.19327.n5.nabble.com/delete-name-not-working-tp5804145.html Sent from the Mkgmap Development mailing list archive at Nabble.com.

Am Freitag, 25. April 2014, 05:34:32 schrieb franco_bez: Hi Franco I think this is a problem in our style, so we should fix it there ;-) Bernd -- amarok2 now playing:

Hi Franco, your points file contains include 'inc/name'; which contains the name function. This is before the delete, so mkgmap:label:1 is already filled. I did not try, but I think you just have to move the include 'inc/name'; line after the changes of the name tag. Gerd franco_bez wrote
Hi all,
I'm facing a very strange problem with the style function delete.
in the points file I have the following rule
In the past this removed unwanted labels on post boxes in the map.
Since quite some time, I assume since the change to the new style rules a few month ago, the labels re-appeared in the map.
I tried many different things to get rid of them but I always failed.
Any Idea what's going wrong here ?
I composed a testcase for the bug, sample osm data and style is included: happens everywhere but my testcase is located here <http://www.openstreetmap.org/?mlat=47.87609&mlon=10.62906#map=19/47.87609/10.62906>
Download Testcase <http://files.mkgmap.org.uk/download/205/delete_name_bug_testcase.tgz>
here's a screenshot of a "points only" map from the testcase
<http://gis.19327.n5.nabble.com/file/n5804145/102.bmp> -- View this message in context: http://gis.19327.n5.nabble.com/delete-name-not-working-tp5804145p5804156.htm... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Am Freitag, 25. April 2014, 07:10:29 schrieb GerdP: Hi Gerd
I did not try, but I think you just have to move the include 'inc/name'; line after the changes of the name tag.
That was my first thoughts, too, but i will also test our changes at the start of inc/name. Bernd -- amarok2 now playing:

Just a question for my understanding of the problem: This rule not only sets the "name" but also mkgmap:label:1 ? I thought that calling - delete name - would erase the name, no matter what it was assigned before. would it make any difference having a rule with the set command instead ? would - delete name - then work as expected ? -- View this message in context: http://gis.19327.n5.nabble.com/delete-name-not-working-tp5804145p5804164.htm... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi Franco, the style manual says about Action block name: This sets the first label of the element but only if it is not already set. This is a helper action. The same effect can be produced with different notations as it is shown in the following example where all three lines have the same effect. {name '${name} (${ref})' | '${ref}' | '${name}'} {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} mkgmap:label:1!=* {set mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} So, if you delete the name tag after using the name action, it has no effect on the tag mkgmap:label:1. Gerd franco_bez wrote
Just a question for my understanding of the problem:
This rule not only sets the "name" but also mkgmap:label:1 ?
I thought that calling - delete name - would erase the name, no matter what it was assigned before.
would it make any difference having a rule with the set command instead ?
would - delete name - then work as expected ?
-- View this message in context: http://gis.19327.n5.nabble.com/delete-name-not-working-tp5804145p5804172.htm... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi Gerd, thank you very much for the clarification. -- View this message in context: http://gis.19327.n5.nabble.com/delete-name-not-working-tp5804145p5804196.htm... Sent from the Mkgmap Development mailing list archive at Nabble.com.
participants (3)
-
Bernd Weigelt
-
franco_bez
-
GerdP