|
|
|
@@ -881,6 +881,19 @@ const cityData = [["Perris, CA", 81964684.1824094, 17340.390703739322], |
|
|
|
["Santa Barbara, CA", 50991347.46845491, 7484.009670940266], |
|
|
|
["Rio Rancho, NM", 269136968.1901309, 23814.351777786604]]; |
|
|
|
|
|
|
|
const globalCityData = [ |
|
|
|
["London", 1595951001.243258, 45078.7351319594], |
|
|
|
["Paris", 105295835.99015382, 9638.711635935364], |
|
|
|
["Melbourne", 37645388.45504674, 8374.051389167866], |
|
|
|
["Sydney", 4324012960.9402275, 89922.41773568685], |
|
|
|
["Berlin", 889606455.0316621, 37503.65910136853], |
|
|
|
["Moscow", 2556449120.0771136, 97614.50005992019], |
|
|
|
["Seoul", 607651322.3035502, 30365.92222630693], |
|
|
|
["Madrid", 605538730.8845485, 36915.51233779266], |
|
|
|
["Hong Kong", 152936581.1183557, 11981.32777728141], |
|
|
|
["Beijing", 16426832679.115694, 178940.11723688344], |
|
|
|
] |
|
|
|
|
|
|
|
function makePlanet(name, diameter, mass, image) { |
|
|
|
return { |
|
|
|
name: name, |
|
|
|
@@ -928,7 +941,7 @@ function makeMountains() { |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
function makeGIS(data, category) { |
|
|
|
function makeGIS(data, category, rename=true) { |
|
|
|
const baseLength = math.unit(1, "meters"); |
|
|
|
const baseArea = math.unit(1, "meters^2"); |
|
|
|
return { |
|
|
|
@@ -960,7 +973,7 @@ function makeGIS(data, category) { |
|
|
|
name: name, |
|
|
|
rename: true, |
|
|
|
image: { |
|
|
|
source: "./media/naturals/" + category.toLowerCase().replace(/ /g, "-") + "/" + name.toLowerCase().replace(/ /g, "-") + ".svg" |
|
|
|
source: "./media/naturals/" + category.toLowerCase().replace(/ /g, "-") + "/" + (rename ? name.toLowerCase().replace(/ /g, "-") + ".svg" : name + ".svg") |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
@@ -1087,6 +1100,13 @@ function makeNaturals() { |
|
|
|
"Cities" |
|
|
|
)); |
|
|
|
|
|
|
|
results.push(makeGIS( |
|
|
|
globalCityData.sort((s1, s2) => { |
|
|
|
return s1[0].localeCompare(s2[0]) |
|
|
|
}), |
|
|
|
"Global Cities", |
|
|
|
false |
|
|
|
)); |
|
|
|
results.push(makeSkylines( |
|
|
|
[ |
|
|
|
["Los Angeles", math.unit(1018, "feet")], |
|
|
|
|