Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

improve round line joins for semi-transparent lines #1839

Merged
merged 2 commits into from Jul 8, 2015
Merged

Commits on Jul 8, 2015

  1. improve round line joins for semi-transparent lines

    mapbox/mapbox-gl-js#1359
    
    Round line joins used to be drawn by adding a semicircle cap to the end
    of each segment. This looked fine for opaque lines not for
    semi-transparent lines.
    
    This changes the triangulation so that round line joins don't overlap
    with segments. The gap between segments is filled with small triangles
    that look like pie slices. The edge of the round linejoin is made up of
    many short straight lines that look round at the sizes we draw lines.
    
    Since sharp angles are infrequent, this does not significantly affect
    the total number of triangles created.
    
    Joins for angles that are really sharp are still drawn with overlap.
    ansis committed Jul 8, 2015
    Configuration menu
    Copy the full SHA
    888ae5e View commit details
    Browse the repository at this point in the history
  2. increase simplification for line annotations

    to make them look better when drawn semi-transparently
    ansis committed Jul 8, 2015
    1 Configuration menu
    Copy the full SHA
    03c4ed7 View commit details
    Browse the repository at this point in the history