mapboxvector-tilesmaplibre-gl

Lines abruptly disconnect at random points


While rendering some lines using Vector Tiles in Mapbox, I encounter the kind of artifacts that are shown on the screenshot. Never before I've seen or experienced a glitch like this. Any ideas of what might be causing or how to mitigate it?

enter image description here


Solution

  • You haven't provided much information, but it's possible that using "line-cap": "square" rather than "line-cap": "butt" (the default) in your GL style will fix it.