mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-09-28 13:09:08 +02:00
Add some more entries, make outline for the green lattice more precise
This commit is contained in:
parent
e2ee1b6ca0
commit
44dc9f19ff
6 changed files with 2130 additions and 554 deletions
1104
combined.js
1104
combined.js
File diff suppressed because it is too large
Load diff
1102
web/_js/atlas.js
1102
web/_js/atlas.js
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
@ -31,6 +31,8 @@ for(var q = 0; q < atlas.length; q++){
|
||||||
areasSum += area;
|
areasSum += area;
|
||||||
areas.push(area);
|
areas.push(area);
|
||||||
|
|
||||||
|
atlas[q].area = area;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
areas.sort(function(a, b){
|
areas.sort(function(a, b){
|
||||||
|
@ -44,6 +46,17 @@ areas.sort(function(a, b){
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
atlas.sort(function(a, b){
|
||||||
|
if (a.area < b.area) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (a.area > b.area) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
// a must be equal to b
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
|
||||||
var el = document.createElement("canvas");
|
var el = document.createElement("canvas");
|
||||||
el.style.position = "absolute";
|
el.style.position = "absolute";
|
||||||
el.style.top = "0px";
|
el.style.top = "0px";
|
||||||
|
@ -84,9 +97,9 @@ for(var i in areas){
|
||||||
}
|
}
|
||||||
counts[bracket]++;
|
counts[bracket]++;
|
||||||
}
|
}
|
||||||
console.log(counts);
|
//console.log(counts);
|
||||||
console.log(brackets);
|
//console.log(brackets);
|
||||||
console.log(mostCounts);
|
//console.log(mostCounts);
|
||||||
|
|
||||||
ctx.fillStyle = "#FFFFFF";
|
ctx.fillStyle = "#FFFFFF";
|
||||||
ctx.fillRect(0, 0, el.width, el.height);
|
ctx.fillRect(0, 0, el.width, el.height);
|
||||||
|
@ -192,16 +205,48 @@ for(var i = 0; i < counts.length; i++){
|
||||||
|
|
||||||
document.getElementById("wrapper").appendChild(el);
|
document.getElementById("wrapper").appendChild(el);
|
||||||
|
|
||||||
console.log(areas);
|
//console.log(areas);
|
||||||
|
|
||||||
console.log("Median area: "+areas[~~(areas.length/2)]);
|
console.log("Median area: "+areas[~~(areas.length/2)]);
|
||||||
|
|
||||||
console.log("Average area: "+(areasSum/atlas.length));
|
console.log("Average area: "+(areasSum/atlas.length));
|
||||||
|
|
||||||
|
var topCount = 10;
|
||||||
|
console.log("The "+topCount+" largest entries:");
|
||||||
|
|
||||||
|
var outstring = "";
|
||||||
|
|
||||||
|
for(var i = 0; i < topCount; i++){
|
||||||
|
outstring += ((i+1)+"|["+atlas[atlas.length-i-1].name +"](https://draemm.li/various/place-atlas/?id="+atlas[atlas.length-i-1].id+")|"+ ~~atlas[atlas.length-i-1].area+"|"+Math.round(atlas[atlas.length-i-1].area/100)/100+"%\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(outstring);
|
||||||
|
|
||||||
|
atlas.sort(function(a, b){
|
||||||
|
if (a.center[0] < b.center[0]) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (a.center[0] > b.center[0]) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
// a must be equal to b
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log("Median x: "+atlas[~~(atlas.length/2)].center[0]);
|
||||||
|
|
||||||
|
atlas.sort(function(a, b){
|
||||||
|
if (a.center[1] < b.center[1]) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (a.center[1] > b.center[1]) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
// a must be equal to b
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log("Median y: "+atlas[~~(atlas.length/2)].center[1]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
|
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
|
||||||
|
|
||||||
<link href="./_css/style.css?version=1.0.29" rel="stylesheet" type="text/css" media="all">
|
<link href="./_css/style.css?version=1.0.30" rel="stylesheet" type="text/css" media="all">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
|
@ -82,7 +82,7 @@ <h2>How to contribute</h2>
|
||||||
<p>Please read <a href="https://reddit.com/r/placeAtlas/comments/63afic/how_to_contribute/" target="_blank">this post on reddit</a> to learn how to submit a new entry.</p>
|
<p>Please read <a href="https://reddit.com/r/placeAtlas/comments/63afic/how_to_contribute/" target="_blank">this post on reddit</a> to learn how to submit a new entry.</p>
|
||||||
<p>The <a href="https://reddit.com/r/placeAtlas/" target="_blank">/r/placeAtlas</a> subreddit is also the place to submit all bug reports, feature requests or questions.</p>
|
<p>The <a href="https://reddit.com/r/placeAtlas/" target="_blank">/r/placeAtlas</a> subreddit is also the place to submit all bug reports, feature requests or questions.</p>
|
||||||
<h2>Contributors</h2>
|
<h2>Contributors</h2>
|
||||||
<p>The Atlas would not have been possible without the help of the following 716 reddit users.</p>
|
<p>The Atlas would not have been possible without the help of the following 723 reddit users.</p>
|
||||||
<p>Thank you to everyone who submitted new entries, amended existing ones, reported bugs and just supported the project in general.</p>
|
<p>Thank you to everyone who submitted new entries, amended existing ones, reported bugs and just supported the project in general.</p>
|
||||||
<div id="contributors">
|
<div id="contributors">
|
||||||
<a href="https://reddit.com/user/-Chowder-" target="_blank">-Chowder-</a>
|
<a href="https://reddit.com/user/-Chowder-" target="_blank">-Chowder-</a>
|
||||||
|
@ -197,6 +197,7 @@ <h2>Contributors</h2>
|
||||||
<a href="https://reddit.com/user/Ch1mpy" target="_blank">Ch1mpy</a>
|
<a href="https://reddit.com/user/Ch1mpy" target="_blank">Ch1mpy</a>
|
||||||
<a href="https://reddit.com/user/ChalkCultPen" target="_blank">ChalkCultPen</a>
|
<a href="https://reddit.com/user/ChalkCultPen" target="_blank">ChalkCultPen</a>
|
||||||
<a href="https://reddit.com/user/chaosof99" target="_blank">chaosof99</a>
|
<a href="https://reddit.com/user/chaosof99" target="_blank">chaosof99</a>
|
||||||
|
<a href="https://reddit.com/user/Chaoticblue3" target="_blank">Chaoticblue3</a>
|
||||||
<a href="https://reddit.com/user/ChartreuseLotus" target="_blank">ChartreuseLotus</a>
|
<a href="https://reddit.com/user/ChartreuseLotus" target="_blank">ChartreuseLotus</a>
|
||||||
<a href="https://reddit.com/user/chaz905" target="_blank">chaz905</a>
|
<a href="https://reddit.com/user/chaz905" target="_blank">chaz905</a>
|
||||||
<a href="https://reddit.com/user/Chipbonk" target="_blank">Chipbonk</a>
|
<a href="https://reddit.com/user/Chipbonk" target="_blank">Chipbonk</a>
|
||||||
|
@ -400,6 +401,7 @@ <h2>Contributors</h2>
|
||||||
<a href="https://reddit.com/user/josersrc" target="_blank">josersrc</a>
|
<a href="https://reddit.com/user/josersrc" target="_blank">josersrc</a>
|
||||||
<a href="https://reddit.com/user/joshram_" target="_blank">joshram_</a>
|
<a href="https://reddit.com/user/joshram_" target="_blank">joshram_</a>
|
||||||
<a href="https://reddit.com/user/JuanAy" target="_blank">JuanAy</a>
|
<a href="https://reddit.com/user/JuanAy" target="_blank">JuanAy</a>
|
||||||
|
<a href="https://reddit.com/user/julezsource" target="_blank">julezsource</a>
|
||||||
<a href="https://reddit.com/user/Jumpyboy" target="_blank">Jumpyboy</a>
|
<a href="https://reddit.com/user/Jumpyboy" target="_blank">Jumpyboy</a>
|
||||||
<a href="https://reddit.com/user/juririm" target="_blank">juririm</a>
|
<a href="https://reddit.com/user/juririm" target="_blank">juririm</a>
|
||||||
<a href="https://reddit.com/user/Just_A_Mainer" target="_blank">Just_A_Mainer</a>
|
<a href="https://reddit.com/user/Just_A_Mainer" target="_blank">Just_A_Mainer</a>
|
||||||
|
@ -410,6 +412,7 @@ <h2>Contributors</h2>
|
||||||
<a href="https://reddit.com/user/Karasuni" target="_blank">Karasuni</a>
|
<a href="https://reddit.com/user/Karasuni" target="_blank">Karasuni</a>
|
||||||
<a href="https://reddit.com/user/Karpfador" target="_blank">Karpfador</a>
|
<a href="https://reddit.com/user/Karpfador" target="_blank">Karpfador</a>
|
||||||
<a href="https://reddit.com/user/Kazoology" target="_blank">Kazoology</a>
|
<a href="https://reddit.com/user/Kazoology" target="_blank">Kazoology</a>
|
||||||
|
<a href="https://reddit.com/user/kDart007" target="_blank">kDart007</a>
|
||||||
<a href="https://reddit.com/user/Kdog0073" target="_blank">Kdog0073</a>
|
<a href="https://reddit.com/user/Kdog0073" target="_blank">Kdog0073</a>
|
||||||
<a href="https://reddit.com/user/kebabtent" target="_blank">kebabtent</a>
|
<a href="https://reddit.com/user/kebabtent" target="_blank">kebabtent</a>
|
||||||
<a href="https://reddit.com/user/Kelsew" target="_blank">Kelsew</a>
|
<a href="https://reddit.com/user/Kelsew" target="_blank">Kelsew</a>
|
||||||
|
@ -493,6 +496,7 @@ <h2>Contributors</h2>
|
||||||
<a href="https://reddit.com/user/Mightymushroom1" target="_blank">Mightymushroom1</a>
|
<a href="https://reddit.com/user/Mightymushroom1" target="_blank">Mightymushroom1</a>
|
||||||
<a href="https://reddit.com/user/MigthyPanCake" target="_blank">MigthyPanCake</a>
|
<a href="https://reddit.com/user/MigthyPanCake" target="_blank">MigthyPanCake</a>
|
||||||
<a href="https://reddit.com/user/Miitomud" target="_blank">Miitomud</a>
|
<a href="https://reddit.com/user/Miitomud" target="_blank">Miitomud</a>
|
||||||
|
<a href="https://reddit.com/user/mikecraft900" target="_blank">mikecraft900</a>
|
||||||
<a href="https://reddit.com/user/mikusingularity" target="_blank">mikusingularity</a>
|
<a href="https://reddit.com/user/mikusingularity" target="_blank">mikusingularity</a>
|
||||||
<a href="https://reddit.com/user/mimis123" target="_blank">mimis123</a>
|
<a href="https://reddit.com/user/mimis123" target="_blank">mimis123</a>
|
||||||
<a href="https://reddit.com/user/Minecraft_Redstoning" target="_blank">Minecraft_Redstoning</a>
|
<a href="https://reddit.com/user/Minecraft_Redstoning" target="_blank">Minecraft_Redstoning</a>
|
||||||
|
@ -681,6 +685,7 @@ <h2>Contributors</h2>
|
||||||
<a href="https://reddit.com/user/tears-of-soy" target="_blank">tears-of-soy</a>
|
<a href="https://reddit.com/user/tears-of-soy" target="_blank">tears-of-soy</a>
|
||||||
<a href="https://reddit.com/user/TeeMee123" target="_blank">TeeMee123</a>
|
<a href="https://reddit.com/user/TeeMee123" target="_blank">TeeMee123</a>
|
||||||
<a href="https://reddit.com/user/Tegoto" target="_blank">Tegoto</a>
|
<a href="https://reddit.com/user/Tegoto" target="_blank">Tegoto</a>
|
||||||
|
<a href="https://reddit.com/user/TeHokioi" target="_blank">TeHokioi</a>
|
||||||
<a href="https://reddit.com/user/Tekar" target="_blank">Tekar</a>
|
<a href="https://reddit.com/user/Tekar" target="_blank">Tekar</a>
|
||||||
<a href="https://reddit.com/user/terriblestperson" target="_blank">terriblestperson</a>
|
<a href="https://reddit.com/user/terriblestperson" target="_blank">terriblestperson</a>
|
||||||
<a href="https://reddit.com/user/thanhvd1403" target="_blank">thanhvd1403</a>
|
<a href="https://reddit.com/user/thanhvd1403" target="_blank">thanhvd1403</a>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no">
|
||||||
|
|
||||||
<link href="./_css/style.css?version=1.0.29" rel="stylesheet" type="text/css" media="all">
|
<link href="./_css/style.css?version=1.0.30" rel="stylesheet" type="text/css" media="all">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -181,18 +181,21 @@ <h2>Tux</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
<script type="text/javascript" src="./_js/pointInPolygon.js?version=1.0"></script>
|
<script type="text/javascript" src="./_js/pointInPolygon.js?version=1.0"></script>
|
||||||
<script type="text/javascript" src="./_js/atlas.js?version=1.0.50"></script>
|
<script type="text/javascript" src="./_js/atlas.js?version=1.0.50"></script>
|
||||||
<script type="text/javascript" src="./_js/view.js?version=1.0.4"></script>
|
<script type="text/javascript" src="./_js/view.js?version=1.0.4"></script>
|
||||||
<script type="text/javascript" src="./_js/overlap.js?version=1.0.4"></script>
|
<script type="text/javascript" src="./_js/overlap.js?version=1.0.4"></script>
|
||||||
<script type="text/javascript" src="./_js/draw.js?version=1.0.3"></script>
|
<script type="text/javascript" src="./_js/draw.js?version=1.0.3"></script>
|
||||||
<script type="text/javascript" src="./_js/main.js?version=1.0.3"></script>
|
<script type="text/javascript" src="./_js/main.js?version=1.0.3"></script>
|
||||||
<script type="text/javascript" src="./_js/stats.js?version=1.0.0"></script>
|
-->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<script type="text/javascript" src="./_js/minified.js?version=1.0.92"></script>
|
<script type="text/javascript" src="./_js/stats.js?version=1.0.0"></script>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<script type="text/javascript" src="./_js/minified.js?version=1.0.93"></script>
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue