News for hackers. Stuff that matters.
Re:Show HN: A simple world flags game, my first web dev proj... by andnand on Wednesday January 25, 2023 @09:45AM (#34518802)
Very neat! Can someone explain the json is being rendered? I had no idea json could be rendered as an image? https://github.com/billywojcicki/vexillologist/blob/master/w...
Re:Show HN: A simple world flags game, my first web dev proj... by hailkuato on Wednesday January 25, 2023 @09:53AM (#34518920)
Not sure but it may be TopoJSON: - https://github.com/topojson/topojson - https://github.com/topojson/topojson-specification

My guess is that Github just recognizes and supports previewing this particular spec.

Re:Show HN: A simple world flags game, my first web dev proj... by nickybuzz on Wednesday January 25, 2023 @11:04AM (#34519941)
This is correct
Re:Show HN: A simple world flags game, my first web dev proj... by abejfehr on Wednesday January 25, 2023 @09:54AM (#34518931)
It's geojson, Github renders that: https://github.blog/2013-06-13-there-s-a-map-for-that/

Edit: I was wrong, it's topojson as per the other reply, based on the data-type attribute that's set on the div outside the map