I would love to see some stats with this. What countries gain/loss the most? Which countries are the last changed? What areas are the now the most countries away from their original country?
Hmm, looks like it models capital cities as a single point, and therefore assigns much more territory to Vatican City than would a model that took into account Rome's city boundaries
I find zooming on this world capitals one to be quite slow for some reason, mostly well below 10fps, and it’s rendering all frames rather than skipping to keep up (the wrong decision, I reckon). Panning is excellent; and zooming is fine on /maps/voronoi/, which has only a dozen or so points, which I guess must be few enough not to slow it down. I’m curious what’s going on, but not enough to delve into the code myself.
Actually, even /maps/voronoi/ lags if you zoom in really far, and in a way that can break the scroll capture—I presume the code is non-passively watching scroll events and calling preventDefault(), but once it’s lagging hard enough the browser takes matters into its own hands and says you didn’t act fast enough.
It would be interesting to see a map which was not minimizing [distance to capital] but instead minimized [distance to capital]/sqrt([national population]). The latter would be more robust against Sybil attacks.
Now the corollary. For each country, given existing borders, place the capital directly in the geographic area centroid? Population centroid? Which capitals move most?
the choice of which city makes it into a dot seems very arbitrary, just for my corner of the woods, I see Genova and Lyons are omitted even they they are larger than their dot-neighbours on this map...
The funny thing about this is that it's almost realistic
But in fact of course geography plays a big part
That "non-existent" country between France and Spain would actually be the center of Occitan/Langues d'Oc. (Well, it's actually the location of Andorra)
It is also in the middle of the Pyrenees so of course that is going to push population out to the sides
Same thing for where the areas "bleed over" water regions or some rivers
South Africa is split into 4 segments. Johannesburg is not a capital. Otherwise South Africa has 3 capital cities - administrative (Pretoria), legislative (Cape Town) and judicial (Bloemfontein) - but Pretoria is informally considered the "main" capital.
37 comments
[ 4.7 ms ] story [ 60.6 ms ] threadActually, even /maps/voronoi/ lags if you zoom in really far, and in a way that can break the scroll capture—I presume the code is non-passively watching scroll events and calling preventDefault(), but once it’s lagging hard enough the browser takes matters into its own hands and says you didn’t act fast enough.
But in fact of course geography plays a big part
That "non-existent" country between France and Spain would actually be the center of Occitan/Langues d'Oc. (Well, it's actually the location of Andorra)
It is also in the middle of the Pyrenees so of course that is going to push population out to the sides
Same thing for where the areas "bleed over" water regions or some rivers