CartoDB / mobile-carto-libs

Internal dependencies for CARTO Mobile SDK
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

`Line` text can be upside down with `text-allow-overlap` #35

Open farfromrefug opened 1 year ago

farfromrefug commented 1 year ago

if you have something like this in your css

[class='waypointline'] {
            line-color: #00000077;
            line-join: round;
            line-cap: round;
            line-width: 3;
            text-name: [text];
            text-placement: line;
            text-wrap-before: true;
            text-face-name: @mont;
            text-size: 10;
            text-allow-overlap: true;
            text-halo-fill: @route_label_halo;
            text-halo-radius: @route_label_halo_radius;
            text-dy: @route_text_dy;
        }

depending on the line "order" the text is upside down. If you set text-allow-overlap: false; the text will always be drawn correctly