tile38 icon indicating copy to clipboard operation
tile38 copied to clipboard

LineStrings don't render in MVTs

Open metaxasa opened this issue 1 month ago • 2 comments

Describe the bug LineStrings don't render in MVTs

To Reproduce Steps to reproduce the behavior:

  1. SET tracks 1 OBJECT '{"type":"LineString","coordinates":[[0,0],[1,1]]}'
  2. Retrieve appropriate MVT.
  3. Observe no LineString is rendered.

Expected behavior A LineString is shown when retrieving the MVT.

Additional context Looks like the problem is this line that doesn't use the index i in the loop, e.g. p := line.PointAt(0) should be p := line.PointAt(i). Could also add a guard to check we have >= 2 points.

Happy to provide a PR if helpful.

metaxasa avatar Dec 09 '25 22:12 metaxasa

A PR would be great. Thanks!

tidwall avatar Dec 10 '25 02:12 tidwall

No problem - here you go! HTH

metaxasa avatar Dec 10 '25 15:12 metaxasa

merged

metaxasa avatar Dec 12 '25 13:12 metaxasa