0

I am trying to create a basemap in tilemill. Very new to this software. When I add the label styling for the roads, it adds the name several times. Is there a way to have it only place the label on the map once?

My code

#MajorRoads{
  [STREET_NAM='NC-191']{
   text-name:[STREET_NAM];
   text-face-name:'Arial Regular';
   line-width:3;
   line-color:#606060;
  }

1 Answer 1

1

You could try the text-spacing property, which controls 'distance between repeated text labels on a line (aka. label-spacing)'. Here's a link to the CartoCSS docs:

https://github.com/mapbox/carto/blob/master/docs/latest.md#text-spacing-unsigned

You can also find some other helpful properties there for label placement, including text-placement and text-min-path-length.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.