layerchart
layerchart copied to clipboard
[GeoPath] Rendering issue with simplified topojson
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
This d3-only example has the same issue
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");)