s2js Demo
+
+ Visual demo of s2js, a pure TypeScript implementation of S2 Geometry.
+
+ Draw any region to see its cell covering.
+
+ Built with Terra Draw, MapLibre and Protomaps tiles.
+
+ Why are there gaps between cells? The visual cells are approximated by trapezoids; in reality they are geodesics, or straight on great circles. +
++ Why don't the cells cover my region? The library interprets edges in the input also as geodesics; this can be mitigated by shorter distances between boundary vertices. +
+ Fork me on GitHub +