I get told to shut up a lot by my friend. This is the microsite that documents this in detail. shutup.jp
postcards microsite
at main 19 lines 405 B view raw
1package main 2 3import "fmt" 4 5var ( 6 // These figures represent the SVG map's transform compared to a full robinson projection 7 offsetX = -33.89079281 8 offsetY = -15.91771089 9 scaleX = 1.020619693 * 2000 10 scaleY = 1.207910396 * 857 11) 12 13func svgPointer(x, y float64, cc string) string { 14 return fmt.Sprintf( 15 `<circle r="5" transform="translate(%.1f,%.1f)"/>`, 16 scaleX*x+offsetX, 17 scaleY*y+offsetY, 18 ) 19}