layerchart icon indicating copy to clipboard operation
layerchart copied to clipboard

[GeoPath] Rendering issue with simplified topojson

Open techniq opened this issue 2 months ago • 2 comments

Most prevalent with simplified paths, such as when using import { presimplify, simplify } from 'topojson-simplify';. REPL. Also visible on SketchyGlobe example (especially when you turn down the "Min area").

This d3 / svelte-canvas example does not have the issue (gist)

See discussion

techniq avatar Oct 27 '25 14:10 techniq

This d3-only example has the same issue

techniq avatar Oct 27 '25 15:10 techniq

Using worldTopoJson.objects.land instead of worldTopoJson.objects.countries displays it as a path/winding issue.

https://github.com/user-attachments/assets/55ac36b3-60f6-430a-9daf-746081162be2

Also, I haven't been able to reproduce it on this d3 example example (need to set feature.attr("fill", "red");)

techniq avatar Oct 28 '25 11:10 techniq