COUNTRY_CENTROIDS
const
Charts & Data Viz
Visual centroid [x, y] coordinates for each country on the 1000 × 500 Mercator canvas used by WORLD_MAP_PATHS. Values are approximate geographic centres of each country shape and serve as endpoints for Bezier flight-route curves.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Entries
Values
All entries in this constant. Click a value to copy it to clipboard.
- US: [122, 130]
- United States centroid on the 1000×500 canvas.
- CA: [120, 66]
- Canada centroid on the 1000×500 canvas.
- MX: [124, 178]
- BR: [258, 252]
- Brazil centroid on the 1000×500 canvas.
- AR: [245, 345]
- CL: [222, 348]
- PE: [218, 260]
- CO: [212, 220]
- GB: [452, 96]
- United Kingdom centroid on the 1000×500 canvas.
- FR: [470, 124]
- DE: [504, 112]
- Germany centroid on the 1000×500 canvas.
- IT: [500, 152]
- ES: [468, 152]
- PT: [440, 152]
- NL: [498, 100]
- BE: [484, 108]
- PL: [538, 110]
- SE: [522, 74]
- NO: [508, 60]
- FI: [544, 62]
- GR: [530, 158]
- TR: [575, 154]
- RU: [730, 68]
- CN: [775, 135]
- JP: [852, 130]
- KR: [835, 150]
- IN: [708, 204]
- TH: [764, 208]
- SG: [778, 230]
- ID: [812, 250]
- ZA: [548, 352]
- EG: [572, 194]
- NG: [504, 262]
- AU: [845, 330]
- NZ: [932, 362]
Ecosystem
Used by
Composables and components that consume this constant.
OrigamWorldMap
Usage
Examples
Ready-to-paste code snippets using this constant.
Drawing a flight arc between two countries