Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm attempting to place intersection markers on a trail map. Each intersection has a number. I can't seem to get the text show up above the marker. If I use the opacity, I can see the text is underneath. Is there an option I'm missing?

Here's the output: enter image description here

And here's the Carto:

#intersections {
  text-name: "[Name]";
  text-placement: point;
  text-fill: black;
  text-face-name: @labels;
  text-size: 12;
  marker-width:10;
  marker-fill:#fff;
  marker-line-color:#333;
  marker-allow-overlap: true;
  marker-placement: point;
  marker-opacity: 0.75;
}
share|improve this question

1 Answer 1

up vote 3 down vote accepted

Unlike normal CSS, the order of your properties matters in Carto - reverse the marker and text rules and it'll reverse their order in rendering.

You must also make sure to set text-allow-overlap to true.

share|improve this answer
    
This worked once I set text-allow-overlap to true as well. I updated your answer to reflect this. It's awaiting review. –  Brian Kelly Jan 12 '12 at 18:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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