remove text-min-distance - increase label density #2195
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This results in rendering more labels for placenames for renderers using Mapnik 2.
For renderers using Mapnik 3 this will have no effect (text-min-distance is applicable only to text placed on line).
This change is equivalent in effect to upgrading to Mapnik 3.
fixes #2189, related to #1935
According to my testing rendering more placenames results in much better/better map (in many cases), unchanged (most cases) or at least not worse (in rare cases).
Some examples with changes to lower zoom levels are at #2189 (comment)
Examples of changes to higher will be below.
Note that attached rendered examples were not generated with exactly the same code as submitted in PR (code included removal of
text-line-spacing: 1;
in for country names).https://cloud.githubusercontent.com/assets/899988/16321281/5f3e6b84-399c-11e6-801f-8a3943bb7c68.png
https://cloud.githubusercontent.com/assets/899988/16321286/5f65bcfc-399c-11e6-8401-f102992c47c6.png
https://cloud.githubusercontent.com/assets/899988/16321283/5f63983c-399c-11e6-8cb1-132f796c8a76.png
https://cloud.githubusercontent.com/assets/899988/16321285/5f63f08e-399c-11e6-9941-50c798fdc08c.png
https://cloud.githubusercontent.com/assets/899988/16321284/5f63850e-399c-11e6-9ba9-63c9d9a36dd9.png
https://cloud.githubusercontent.com/assets/899988/16321288/5f7771e0-399c-11e6-82d6-9d3ec50cb167.png
https://cloud.githubusercontent.com/assets/899988/16321289/5f7e01ea-399c-11e6-8003-1030e70c53b5.png
https://cloud.githubusercontent.com/assets/899988/16321291/5f812212-399c-11e6-898e-ef6f488edbd3.png
https://cloud.githubusercontent.com/assets/899988/16321290/5f80d53c-399c-11e6-9e61-fe4e302cdf1c.png
https://cloud.githubusercontent.com/assets/899988/16321293/5f831b12-399c-11e6-9569-f5dfabe485a6.png
https://cloud.githubusercontent.com/assets/899988/16321292/5f82af7e-399c-11e6-8615-e25d71ae559e.png
https://cloud.githubusercontent.com/assets/899988/16321287/5f665720-399c-11e6-81f3-c1a8d0a41552.png
https://cloud.githubusercontent.com/assets/899988/16321294/5f99b61a-399c-11e6-8a1a-ee9dd3d6654d.png
https://cloud.githubusercontent.com/assets/899988/16321295/5f9d066c-399c-11e6-82f0-f8d18504fd7e.png
https://cloud.githubusercontent.com/assets/899988/16321296/5f9eca38-399c-11e6-8fb8-a70000b413d1.png