Closed almccon closed 8 years ago
I'm wondering if this has something to do with Mapnik and/or Tessera as there's nothing I can see in the CartoCSS or YML files telling Mapnik to not render place / city labels at higher zooms.
Is there a way we can tell Mapnik to prioritize certain labels above others so that they will always render? I'm thinking at the higher zooms the city labels might be conflicting with labels for roads, water bodies, highway shields, etc.
I've been running into an issue when running Tessera where shields are rendering but not their labels. In the screenshots below "EastGate" and highway shield labels should be rendering in the side-by-side Tessara view:
Any thoughts about this @mojodna?
I suspect it's a problem with the yml files getting out of sync. The side-by-side viewer uses the stacked layers, but TileMill would only use terrain-classic.yml
. So I'm guessing that the code for the shields in terrain-classic.yml
is different from the code in terrain-classic-labels.yml
?
I looked at both the terrain-classic.yml and terrain-classic-labels.yml files and they seem pretty similar, though maybe I'm overlooking something. Could it be the layer order is different when the yml files are sandwiched with tessera?
On Saturday, October 24, 2015, Alan McConchie <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:
I suspect it's a problem with the yml files getting out of sync. The side-by-side viewer uses the stacked layers, but TileMill would only use terrain-classic.yml. So I'm guessing that the code for the shields in terrain-classic.yml is different from the code in terrain-classic-labels.yml?
— Reply to this email directly or view it on GitHub https://github.com/stamen/terrain-classic/issues/42#issuecomment-150873576 .
MFA, Design & Technology Parsons, The New School For Design
http://chrishenrick.com Github: @clhenrick https://github.com/clhenrick Twitter: @chrislhenrick https://twitter.com/chrislhenrick
“Whenever I see an adult on a bicycle, I no longer despair for the future of the human race.” — H.G. Wells
So I altered the YML and labels.mss files and think it's helping.
text-
rather than shield-
properties which seems to help the labels display at higher zooms.text-wrap-width
property helps keep the text in a smaller area, giving it a better chance of rendering.However I'm still having difficulty getting the labels to render past zoom 14 and am thinking this is due to street, water and parks labels crowding out the area where text can be rendered. Turning off street labels for example enables city labels to be rendered at higher zoom levels.
I've got labels rendering up to z16 now, by re-ordering the yml files so the aries labels are drawn before any other labels.
They also get drawn before airports, too, so we still see Mexico City at lower zooms:
awesome!
-Chris L Henrick
http://chrishenrick.com https://clhenrick.github.io https://chenrickmfadt.wordpress.com/
Github: @clhenrick https://github.com/clhenrick Twitter: @chrislhenrick https://twitter.com/chrislhenrick
“Whenever I see an adult on a bicycle, I no longer despair for the future of the human race.” — H.G. Wells
On Wed, Nov 4, 2015 at 8:01 PM, Alan McConchie notifications@github.com wrote:
I've got labels rendering up to z16 now, by re-ordering the yml files so the aries labels are drawn before any other labels. [image: screen shot 2015-11-04 at 5 00 09 pm] https://camo.githubusercontent.com/e059998e211cdd46e8e6065f9305b750bf991579/68747470733a2f2f6769746875622d636c6f75642e73332e616d617a6f6e6177732e636f6d2f61737365747325324631323132313738253246313039353730343425324639623133663339632d383331352d313165352d383066392d3034653936613866623266312e706e67
They also get drawn before airports, too, so we still see Mexico City at lower zooms: [image: screen shot 2015-11-04 at 5 01 10 pm] https://camo.githubusercontent.com/6cecccd3639f35396d391c564014473a71d822db/68747470733a2f2f6769746875622d636c6f75642e73332e616d617a6f6e6177732e636f6d2f61737365747325324631323132313738253246313039353730353825324662366532666363362d383331352d313165352d386365642d3661643662626132303733622e706e67
— Reply to this email directly or view it on GitHub https://github.com/stamen/terrain-classic/issues/42#issuecomment-153919835 .
Currently the city names disappear at z11, leaving the map looking pretty empty until street names starting to trickle in. OG Terrain keeps city names on the map until z16! I kind of like it.![screen shot 2015-10-22 at 6 20 17 pm](https://cloud.githubusercontent.com/assets/1212178/10682383/f54bc712-78e9-11e5-943d-eead776bac49.png)