In this section
- Atlas UI interaction · youengineer-code-review / civilisation-atlas/atlas-ui.js lines 1–176
- Civilisation Map Data render · youengineer-code-review / civilisation-map-data.js lines 1–103
- Civilisation Map render · youengineer-code-review / civilisation-map.css lines 1–421
Atlas UI
A JavaScript file in the civilisation atlas folder of Youengineer Code Review that gets features (`getAllFeatures`), applies filters (`applyFilters`) and updates count (`updateCount`).
interactionyouengineer-code-review / civilisation-atlas/atlas-ui.js · lines 1–176 of 176 · Not reached from any entry point (candidate for review) · pattern populateFilters (shared by 2 files)
- What it does
- It draws its content. Defines 13 functions or classes, including getAllFeatures, populateSelect, populateFilters, featurePassesLayerFilter, applyFilters. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- What it achieves
- It gets features (`getAllFeatures`), applies filters (`applyFilters`) and updates count (`updateCount`). Defines `getAllFeatures`, `populateSelect`, `populateFilters` and 10 more. It responds to input, change and click events.
- Why it matters
- No other file in the estate was found to import it.
- Application
- youengineer-code-review · civilisation-atlas · script
- Uses
- none found
- Used by
- none found
- Produces
- getAllFeatures, populateSelect, populateFilters, featurePassesLayerFilter, applyFilters, updateCount, renderSelectedFeature, refreshAtlas, selectFeature, selectRandomFeature, resetFilters, wireControls
- Defines here
- getAllFeatures, populateSelect, populateFilters, featurePassesLayerFilter, applyFilters, updateCount, renderSelectedFeature, refreshAtlas, selectFeature, selectRandomFeature, resetFilters, wireControls, bootAtlas
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 civilisation-atlas/atlas-ui.js:1-176 · blob 8f5c3f410ae1d3eac7795c64b7950c6996fe2cbe · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: unreached_review
"use strict";
function getAllFeatures() {
return atlasState.currentGeoJSON.features || [];
}
function populateSelect(selectElement, values, allLabel) {
selectElement.innerHTML = "";
[allLabel, ...values].forEach((value) => {
const option = document.createElement("option");
option.value = value;
option.textContent = value;
selectElement.appendChild(option);
});
}
function populateFilters() {
const features = getAllFeatures();
const civilisations = uniqueSorted(features.map((feature) => feature.properties.civilisation));
const regions = uniqueSorted(features.map((feature) => feature.properties.region));
populateSelect($("civilisationSelect"), civilisations, "All");
populateSelect($("regionSelect"), regions, "All");
}
function featurePassesLayerFilter(feature) {
const layer = feature.properties.layer;
if (layer === "heritage") {
return atlasState.filters.showHeritage;
}
if (layer === "classical") {
return atlasState.filters.showClassical;
}
return true;
}
function applyFilters() {
const filters = atlasState.filters;
const searchTerm = normalise(filters.search);
atlasState.filteredFeatures = getAllFeatures().filter((feature) => {
const p = feature.properties || {};
const matchesSearch = !searchTerm || normalise(featureText(feature)).includes(searchTerm);
const matchesCivilisation = filters.civilisation === "All" || p.civilisation === filters.civilisation;
const matchesRegion = filters.region === "All" || p.region === filters.region;
const matchesLayer = featurePassesLayerFilter(feature);
return matchesSearch && matchesCivilisation && matchesRegion && matchesLayer;
});
if (!atlasState.filteredFeatures.some((feature) => feature.properties.id === atlasState.selectedFeatureId)) {
atlasState.selectedFeatureId = atlasState.filteredFeatures[0]?.properties.id || null;
}
}
function updateCount() {
const total = getAllFeatures().length;
const visible = atlasState.filteredFeatures.length;
$("visibleCount").textContent = `${visible} of ${total} sites visible`;
}
function renderSelectedFeature() {
const feature = getAllFeatures().find((item) => item.properties.id === atlasState.selectedFeatureId);
if (!feature) {
$("selectedType").textContent = "No site selected";
$("selectedName").textContent = "No matching sites";
$("selectedSummary").textContent = "Try resetting the filters or searching a broader term.";
$("selectedCivilisation").textContent = "—";
$("selectedRegion").textContent = "—";
$("selectedPeriod").textContent = "—";
$("selectedCoordinates").textContent = "—";
$("selectedQuest").textContent = "No quest available until a site is selected.";
return;
}
const p = feature.properties;
$("selectedType").textContent = p.unesco ? "UNESCO-tagged starter site" : "Classical civilisation starter site";
$("selectedName").textContent = p.name;
$("selectedSummary").textContent = p.summary;
$("selectedCivilisation").textContent = p.civilisation;
$("selectedRegion").textContent = p.region;
$("selectedPeriod").textContent = p.period;
$("selectedCoordinates").textContent = formatCoordinates(feature.geometry.coordinates);
$("selectedQuest").textContent = atlasState.filters.showQuests ? p.quest : "Quest prompts are currently hidden.";
}
function refreshAtlas() {
applyFilters();
updateCount();
renderSelectedFeature();
renderMap();
}
function selectFeature(featureId) {
atlasState.selectedFeatureId = featureId;
renderSelectedFeature();
renderMap();
}
function selectRandomFeature() {
if (!atlasState.filteredFeatures.length) {
return;
}
const randomIndex = Math.floor(Math.random() * atlasState.filteredFeatures.length);
selectFeature(atlasState.filteredFeatures[randomIndex].properties.id);
}
function resetFilters() {
atlasState.filters.search = "";
atlasState.filters.civilisation = "All";
atlasState.filters.region = "All";
atlasState.filters.showClassical = true;
atlasState.filters.showHeritage = true;
atlasState.filters.showQuests = true;
$("searchInput").value = "";
$("civilisationSelect").value = "All";
$("regionSelect").value = "All";
$("layerCivilisations").checked = true;
$("layerWorldHeritage").checked = true;
$("layerQuests").checked = true;
refreshAtlas();
}
function wireControls() {
$("searchInput").addEventListener("input", (event) => {
atlasState.filters.search = event.target.value;
refreshAtlas();
});
$("civilisationSelect").addEventListener("change", (event) => {
atlasState.filters.civilisation = event.target.value;
refreshAtlas();
});
$("regionSelect").addEventListener("change", (event) => {
atlasState.filters.region = event.target.value;
refreshAtlas();
});
$("layerCivilisations").addEventListener("change", (event) => {
atlasState.filters.showClassical = event.target.checked;
refreshAtlas();
});
$("layerWorldHeritage").addEventListener("change", (event) => {
atlasState.filters.showHeritage = event.target.checked;
refreshAtlas();
});
$("layerQuests").addEventListener("change", (event) => {
atlasState.filters.showQuests = event.target.checked;
refreshAtlas();
});
$("randomSiteButton").addEventListener("click", selectRandomFeature);
$("resetButton").addEventListener("click", resetFilters);
}
function bootAtlas() {
populateFilters();
applyFilters();
atlasState.selectedFeatureId = atlasState.filteredFeatures[0]?.properties.id || null;
initialiseMap();
wireControls();
updateCount();
renderSelectedFeature();
}
bootAtlas();Civilisation Map Data
A JavaScript file in Youengineer Code Review that builds civilisation feature (`buildCivilisationFeature`). Served with the page at https://ventusltd.github.io/youengineer-code-review/. It builds civilisation feature (`buildCivilisationFeature`).
renderyouengineer-code-review / civilisation-map-data.js · lines 1–103 of 103 · Entry point
- What it does
- Defines buildCivilisationFeature. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief.
- Downstream impact
- Used directly by 1 file: Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/.
- What it achieves
- Defines `buildCivilisationFeature`.
- Why it matters
- Loaded by the Civilisation Map page at https://ventusltd.github.io/youengineer-code-review/civilisation-map.html.
- Application
- youengineer-code-review · / · script
- Uses
- none found
- Used by
- loaded by Civilisation Map (script src)
- Produces
- buildCivilisationFeature
- Defines here
- buildCivilisationFeature
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 civilisation-map-data.js:1-103 · blob a74bce78b614a634fc5fdabc662e0a41cba38549 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: site_feasibility · users: IPP_developer, landowner_planner · canonical: unknown
const CIVILISATION_LAYER_CONFIG = [
{ id: "mediterranean", label: "Mediterranean classics", colour: "#c57a2a", icon: "🏛️" },
{ id: "near-east", label: "Near East and empires", colour: "#9f6bff", icon: "🦁" },
{ id: "asia", label: "South and East Asia", colour: "#2f9e83", icon: "🛕" },
{ id: "africa", label: "Africa and Indian Ocean", colour: "#d85d5d", icon: "🌍" },
{ id: "americas", label: "Americas", colour: "#2d84c8", icon: "🗿" },
{ id: "northern-pacific", label: "Northern and Pacific worlds", colour: "#6f8f3a", icon: "🧭" },
{ id: "creative-tech", label: "Creative technology inspiration", colour: "#e04aa4", icon: "🎮" }
];
const RAW_CIVILISATION_SITES = [
["acropolis-athens", "Acropolis of Athens", "mediterranean", 23.726, 37.9715, "Classical Greece", "Greece", "5th century BCE", true, "Temple and civic hill", "Architecture, democracy, patron gods", "How can one hill become the memory of a city?"],
["delphi", "Delphi", "mediterranean", 22.501, 38.482, "Classical Greece", "Greece", "Archaic to Roman", true, "Oracle sanctuary", "Prophecy, consultation, landscape", "How did ancient people turn uncertainty into ritual?"],
["olympia", "Olympia", "mediterranean", 21.63, 37.638, "Classical Greece", "Greece", "8th century BCE onwards", true, "Athletic sanctuary", "Games, competition, truce", "Why did sport become sacred?"],
["mycenae", "Mycenae and Tiryns", "mediterranean", 22.756, 37.73, "Mycenaean Greece", "Greece", "2nd millennium BCE", true, "Bronze Age citadel", "Walls, kingship, epic memory", "What makes a fortress become a legend?"],
["knossos", "Knossos", "mediterranean", 25.163, 35.298, "Minoan Crete", "Greece", "2nd millennium BCE", false, "Palace complex", "Labyrinth stories, trade, frescoes", "How do archaeology and myth overlap?"],
["troy", "Troy", "mediterranean", 26.238, 39.957, "Anatolian and Aegean world", "Turkey", "Bronze Age to Roman", true, "Layered city", "Epic, archaeology, war memory", "How can one site hold many versions of history?"],
["ephesus", "Ephesus", "mediterranean", 27.341, 37.939, "Greek and Roman Asia Minor", "Turkey", "Classical to Byzantine", true, "Ancient city", "Library, theatre, trade routes", "What does a city reveal through its streets?"],
["pergamon", "Pergamon", "mediterranean", 27.18, 39.12, "Hellenistic world", "Turkey", "3rd to 2nd century BCE", true, "Hilltop city", "Libraries, medicine, royal power", "How does knowledge become political power?"],
["rome-colosseum", "Rome and the Colosseum", "mediterranean", 12.4922, 41.8902, "Ancient Rome", "Italy", "1st century CE", true, "Imperial city", "Engineering, spectacle, empire", "How did infrastructure help Rome project power?"],
["pompeii", "Pompeii", "mediterranean", 14.487, 40.748, "Roman world", "Italy", "1st century CE", true, "Buried city", "Daily life, disaster, preservation", "Why can destruction sometimes preserve evidence?"],
["carthage", "Carthage", "mediterranean", 10.329, 36.852, "Phoenician and Punic", "Tunisia", "1st millennium BCE", true, "Port city", "Trade, navy, Rome's rival", "How do sea routes build civilisations?"],
["giza", "Memphis and the Giza Pyramids", "near-east", 31.1342, 29.9792, "Ancient Egypt", "Egypt", "3rd millennium BCE", true, "Pyramid landscape", "Afterlife, geometry, state labour", "How does engineering become sacred architecture?"],
["karnak", "Karnak and Ancient Thebes", "near-east", 32.657, 25.718, "Ancient Egypt", "Egypt", "Middle Kingdom to Ptolemaic", true, "Temple city", "Ritual, columns, dynasties", "How does a sacred site grow over centuries?"],
["abu-simbel", "Abu Simbel", "near-east", 31.6258, 22.3372, "Ancient Egypt and Nubia", "Egypt", "13th century BCE", true, "Rock temples", "Kingship, solar alignment, rescue engineering", "How can ancient and modern engineering meet at one site?"],
["meroe", "Meroe", "africa", 33.729, 16.938, "Kingdom of Kush", "Sudan", "3rd century BCE onwards", true, "Pyramid cemetery and city", "Iron, African kingship, Nile networks", "What changes when Egypt is viewed from the south?"],
["babylon", "Babylon", "near-east", 44.42, 32.536, "Mesopotamia", "Iraq", "2nd to 1st millennium BCE", true, "Ancient city", "Law, astronomy, imperial myth", "How do cities become symbols beyond their walls?"],
["ur", "Ur", "near-east", 46.103, 30.962, "Sumer", "Iraq", "3rd millennium BCE", false, "Ziggurat city", "Writing, trade, temple economy", "How did writing change administration?"],
["persepolis", "Persepolis", "near-east", 52.891, 29.935, "Achaemenid Persia", "Iran", "6th to 4th century BCE", true, "Imperial terrace", "Processions, empire, stone reliefs", "How can art organise a multi-ethnic empire?"],
["petra", "Petra", "near-east", 35.444, 30.328, "Nabataean", "Jordan", "1st century BCE to CE", true, "Rock-cut city", "Water engineering, trade, desert routes", "How do people build abundance in dry places?"],
["palmyra", "Palmyra", "near-east", 38.267, 34.55, "Syrian oasis city", "Syria", "1st to 3rd century CE", true, "Oasis city", "Caravan trade, hybrid culture", "How do crossroads create new identities?"],
["hattusa", "Hattusa", "near-east", 34.619, 40.019, "Hittite", "Turkey", "2nd millennium BCE", true, "Capital city", "Archives, gates, empire", "What can a capital reveal about power?"],
["gobekli-tepe", "Gobekli Tepe", "near-east", 38.922, 37.223, "Prehistoric Anatolia", "Turkey", "10th to 8th millennium BCE", true, "Ritual enclosure", "Prehistory, monuments, symbols", "What if ritual helped organise settlement?"],
["mohenjo-daro", "Mohenjo-daro", "asia", 68.138, 27.329, "Indus Valley", "Pakistan", "3rd millennium BCE", true, "Urban archaeological site", "Drainage, planning, craft", "How does sanitation show civic intelligence?"],
["harappa", "Harappa", "asia", 72.866, 30.628, "Indus Valley", "Pakistan", "3rd millennium BCE", false, "Urban archaeological site", "Weights, streets, seals", "What can standardisation reveal about trade?"],
["taxila", "Taxila", "asia", 72.887, 33.746, "Gandhara", "Pakistan", "6th century BCE onwards", true, "Learning and urban complex", "Buddhist, Persian, Greek and Indian links", "How do crossroads become centres of learning?"],
["sanchi", "Sanchi", "asia", 77.739, 23.486, "Mauryan and Buddhist India", "India", "3rd century BCE onwards", true, "Stupa complex", "Buddhist art, pilgrimage, symbols", "How does a monument teach without words?"],
["nalanda", "Nalanda", "asia", 85.444, 25.136, "Ancient India", "India", "5th to 12th century CE", true, "Monastic university", "Study, libraries, international learning", "What makes a place a university before modern universities?"],
["angkor-wat", "Angkor Wat", "asia", 103.867, 13.412, "Khmer Empire", "Cambodia", "12th century CE", true, "Temple city", "Water, kingship, cosmology", "How can a city model a universe?"],
["borobudur", "Borobudur", "asia", 110.204, -7.607, "Sailendra Java", "Indonesia", "8th to 9th century CE", true, "Buddhist monument", "Pilgrimage path, reliefs, mandala", "How does movement through a monument become learning?"],
["bagan", "Bagan", "asia", 94.867, 21.171, "Pagan Kingdom", "Myanmar", "11th to 13th century CE", true, "Temple plain", "Thousands of monuments, devotion, landscape", "How does repetition create sacred geography?"],
["terracotta-army", "Mausoleum of the First Qin Emperor", "asia", 109.273, 34.384, "Qin China", "China", "3rd century BCE", true, "Imperial tomb complex", "Terracotta army, centralisation, afterlife", "How does a ruler stage power beyond death?"],
["great-wall", "Great Wall at Badaling", "asia", 116.016, 40.359, "Imperial China", "China", "Multiple dynasties", true, "Frontier defence", "Borders, labour, military logistics", "What does a wall reveal about fear and organisation?"],
["nara", "Historic Nara", "asia", 135.839, 34.685, "Classical Japan", "Japan", "8th century CE", true, "Capital temples", "Buddhism, court culture, urban planning", "How does a capital import and transform ideas?"],
["kyoto", "Historic Kyoto", "asia", 135.768, 35.011, "Classical Japan", "Japan", "8th century CE onwards", true, "Historic city", "Temples, gardens, craft, continuity", "How can a city preserve layers of memory?"],
["teotihuacan", "Teotihuacan", "americas", -98.833, 19.692, "Mesoamerica", "Mexico", "1st to 7th century CE", true, "Planned ancient city", "Pyramids, avenues, urban grid", "How does urban planning express cosmology?"],
["chichen-itza", "Chichen Itza", "americas", -88.568, 20.684, "Maya and Toltec worlds", "Mexico", "Late Classic to Postclassic", true, "Ceremonial city", "Astronomy, ball court, pyramid", "How do calendars become architecture?"],
["tikal", "Tikal", "americas", -89.623, 17.222, "Maya", "Guatemala", "Classic period", true, "Forest city", "Kingship, temples, ecology", "How can forests hide and preserve cities?"],
["palenque", "Palenque", "americas", -92.046, 17.484, "Maya", "Mexico", "Classic period", true, "Maya city", "Inscriptions, palace, dynasty", "How does writing give rulers a voice across time?"],
["machu-picchu", "Machu Picchu", "americas", -72.545, -13.163, "Inca", "Peru", "15th century CE", true, "Mountain estate", "Terraces, stonework, landscape", "How does architecture negotiate with mountains?"],
["cusco", "Cusco", "americas", -71.967, -13.532, "Inca", "Peru", "Inca and colonial layers", true, "Imperial capital", "Roads, stonework, sacred geography", "How does an empire organise space from a capital?"],
["chan-chan", "Chan Chan", "americas", -79.075, -8.111, "Chimu", "Peru", "9th to 15th century CE", true, "Adobe city", "Desert urbanism, walls, water", "How does material choice shape a city?"],
["nazca", "Nazca Lines", "americas", -75.133, -14.739, "Nazca", "Peru", "500 BCE to 500 CE", true, "Geoglyph landscape", "Lines, ritual, desert preservation", "How can drawings become geography?"],
["great-zimbabwe", "Great Zimbabwe", "africa", 30.934, -20.267, "Shona civilisation", "Zimbabwe", "11th to 15th century CE", true, "Stone city", "Trade, cattle, architecture", "How does stonework challenge outside assumptions?"],
["aksum", "Aksum", "africa", 38.722, 14.132, "Aksumite Empire", "Ethiopia", "1st millennium CE", true, "Obelisk and city site", "Trade, inscriptions, Christianity", "How did African kingdoms connect continents?"],
["lalibela", "Lalibela", "africa", 39.047, 12.031, "Medieval Ethiopia", "Ethiopia", "12th to 13th century CE", true, "Rock-hewn churches", "Pilgrimage, carving, sacred landscape", "How can subtraction from rock become architecture?"],
["timbuktu", "Timbuktu", "africa", -3.007, 16.773, "Mali and Songhai worlds", "Mali", "14th to 16th century CE", true, "Scholarly city", "Manuscripts, trade, Islam, learning", "How can books become infrastructure for civilisation?"],
["djenne", "Djenne", "africa", -4.555, 13.906, "West African Sahel", "Mali", "Medieval to modern", true, "Mud-brick city", "Architecture, trade, community renewal", "Why does maintenance matter in heritage?"],
["kilwa", "Kilwa Kisiwani", "africa", 39.533, -8.955, "Swahili Coast", "Tanzania", "13th to 16th century CE", true, "Island trading city", "Indian Ocean trade, coral stone, Islam", "How do oceans connect cities into networks?"],
["stonehenge", "Stonehenge", "northern-pacific", -1.826, 51.178, "Neolithic Britain", "United Kingdom", "3rd millennium BCE", true, "Stone circle", "Astronomy, ritual, landscape", "How do monuments measure time?"],
["newgrange", "Newgrange", "northern-pacific", -6.476, 53.694, "Neolithic Ireland", "Ireland", "4th millennium BCE", true, "Passage tomb", "Solstice alignment, ritual, engineering", "How can light become part of a building?"],
["hadrians-wall", "Hadrian's Wall", "northern-pacific", -2.3, 54.99, "Roman Britain", "United Kingdom", "2nd century CE", true, "Frontier wall", "Military logistics, empire, borderland", "What does a frontier reveal about empire?"],
["samarkand", "Samarkand", "near-east", 66.975, 39.654, "Silk Road", "Uzbekistan", "Ancient to Timurid", true, "Crossroads city", "Trade, astronomy, craft, learning", "How does exchange create beauty?"],
["bukhara", "Bukhara", "near-east", 64.43, 39.775, "Silk Road", "Uzbekistan", "Ancient to medieval", true, "Historic city", "Trade, scholarship, urban fabric", "Why do routes produce libraries and markets?"],
["mesa-verde", "Mesa Verde", "americas", -108.462, 37.23, "Ancestral Pueblo", "United States", "6th to 13th century CE", true, "Cliff dwellings", "Architecture, landscape, community", "How does building into cliffs change daily life?"],
["chaco-canyon", "Chaco Canyon", "americas", -107.956, 36.061, "Ancestral Pueblo", "United States", "9th to 12th century CE", true, "Ceremonial landscape", "Roads, astronomy, great houses", "How do roads and alignments create a regional system?"],
["rapa-nui", "Rapa Nui", "northern-pacific", -109.349, -27.112, "Rapa Nui", "Chile", "13th to 17th century CE", true, "Moai landscape", "Ancestors, statues, island systems", "How does isolation change the meaning of resources?"],
["nan-madol", "Nan Madol", "northern-pacific", 158.331, 6.844, "Saudeleur Dynasty", "Micronesia", "13th to 17th century CE", true, "Canal city", "Basalt architecture, lagoon, chiefs", "How do people build monumental spaces on water?"],
["nintendo-museum-uji", "Nintendo Museum, Uji", "creative-tech", 135.795, 34.892, "Modern creative culture", "Japan", "Opened 2024", false, "Game heritage museum", "Play, design, product history", "How can play become cultural memory?"],
["kyoto-creative-map", "Kyoto Creative Industries", "creative-tech", 135.768, 35.011, "Modern and classical Kyoto", "Japan", "Historic and modern", false, "Creative city marker", "Craft, games, animation, temples", "How can old cultural memory feed new creative technology?"],
["seattle-gaming-culture", "Seattle Gaming Culture", "creative-tech", -122.332, 47.606, "Modern creative technology", "United States", "Modern", false, "Creative technology city", "Software, games, education, design", "How do modern toolmakers create worlds for others to explore?"]
];
function buildCivilisationFeature(site) {
const [id, name, layer, lon, lat, civilisation, country, period, unesco, siteType, focus, studentPrompt] = site;
return {
type: "Feature",
id,
geometry: {
type: "Point",
coordinates: [lon, lat]
},
properties: {
id,
name,
layer,
civilisation,
country,
period,
unesco,
siteType,
focus,
studentPrompt
}
};
}
window.CIVILISATION_LAYER_CONFIG = Object.freeze(CIVILISATION_LAYER_CONFIG);
window.CIVILISATION_GEOJSON = Object.freeze({
type: "FeatureCollection",
name: "YouEngineer global civilisation atlas starter layer",
features: RAW_CIVILISATION_SITES.map(buildCivilisationFeature)
});Civilisation Map
A style sheet in Youengineer Code Review. Served with the page at https://ventusltd.github.io/youengineer-code-review/.
renderyouengineer-code-review / civilisation-map.css · lines 1–421 of 458 · Entry point
- What it does
- Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief.
- Downstream impact
- Used directly by 1 file: Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- Loaded by the page of the same name at https://ventusltd.github.io/youengineer-code-review/civilisation-map.html.
- Application
- youengineer-code-review · / · style sheet
- Uses
- none found
- Used by
- loaded by Civilisation Map (stylesheet)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 civilisation-map.css:1-421 · blob a237f816f0fb20d21a9fb583ae49b54faa992015 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: site_feasibility · users: IPP_developer, landowner_planner · canonical: unknown
:root {
--atlas-ink: #24190f;
--atlas-marble: #fff8e7;
--atlas-bronze: #9e6b2e;
--atlas-olive: #5f6f3a;
--atlas-blue: #17324d;
--atlas-water: #16324f;
--atlas-panel: rgba(255, 248, 231, 0.94);
--atlas-shadow: rgba(36, 25, 15, 0.24);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
font-family: Georgia, "Times New Roman", serif;
color: var(--atlas-ink);
background:
radial-gradient(circle at top, rgba(255, 248, 231, 0.94), rgba(105, 88, 53, 0.72)),
linear-gradient(135deg, #0e1f33, #392817);
padding: 24px;
}
.atlas-shell {
max-width: 1280px;
margin: 0 auto;
border: 8px double var(--atlas-bronze);
border-radius: 28px;
overflow: hidden;
background: var(--atlas-panel);
box-shadow: 0 24px 70px var(--atlas-shadow);
}
.atlas-hero {
padding: 32px 26px 22px;
text-align: center;
border-bottom: 3px solid rgba(158, 107, 46, 0.35);
background:
linear-gradient(90deg, transparent, rgba(158, 107, 46, 0.12), transparent),
var(--atlas-marble);
}
.eyebrow {
margin: 0 0 10px;
color: var(--atlas-olive);
font-size: 0.8rem;
font-weight: bold;
letter-spacing: 0.22em;
text-transform: uppercase;
}
.atlas-hero h1 {
margin: 0;
font-size: clamp(2.4rem, 7vw, 5.4rem);
line-height: 1;
}
.atlas-hero p:last-child {
max-width: 820px;
margin: 16px auto 0;
font-size: 1.08rem;
}
.nav-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
margin-top: 18px;
}
.nav-link {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 38px;
padding: 8px 14px;
border: 2px solid rgba(158, 107, 46, 0.48);
border-radius: 999px;
color: var(--atlas-ink);
background: #f7e4b9;
text-decoration: none;
font-weight: bold;
}
.atlas-grid {
display: grid;
grid-template-columns: 330px 1fr;
gap: 20px;
padding: 24px;
}
.control-panel,
.info-panel,
.map-panel {
border: 3px solid rgba(158, 107, 46, 0.3);
border-radius: 24px;
background: var(--atlas-marble);
box-shadow: 0 14px 35px rgba(36, 25, 15, 0.14);
}
.control-panel,
.info-panel {
padding: 20px;
}
.sidebar-stack {
display: grid;
gap: 18px;
}
.control-panel h2,
.info-panel h2,
.map-panel h2 {
margin: 0 0 12px;
}
.form-line {
display: grid;
gap: 8px;
margin-bottom: 14px;
font-weight: bold;
}
.form-line input,
.form-line select {
width: 100%;
min-height: 44px;
border: 2px solid rgba(158, 107, 46, 0.45);
border-radius: 14px;
background: #fffdf3;
color: var(--atlas-ink);
font: inherit;
padding: 10px 12px;
}
.layer-list {
display: grid;
gap: 9px;
}
.layer-toggle {
display: grid;
grid-template-columns: auto 1fr auto;
gap: 10px;
align-items: center;
min-height: 42px;
padding: 8px 10px;
border: 1px solid rgba(158, 107, 46, 0.28);
border-radius: 14px;
background: rgba(255, 255, 255, 0.42);
cursor: pointer;
}
.layer-toggle input {
accent-color: var(--atlas-bronze);
}
.layer-swatch {
width: 12px;
height: 12px;
border-radius: 50%;
box-shadow: 0 0 0 4px rgba(36, 25, 15, 0.06);
}
.button-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-top: 14px;
}
button {
border: 2px solid var(--atlas-bronze);
border-radius: 13px;
background: #f7e4b9;
color: var(--atlas-ink);
font: inherit;
font-weight: bold;
cursor: pointer;
padding: 10px 12px;
transition: transform 160ms ease, box-shadow 160ms ease;
}
button:hover,
button:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
transform: translateY(-2px);
box-shadow: 0 8px 14px rgba(36, 25, 15, 0.18);
}
.stat-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin: 14px 0 0;
}
.stat-card {
padding: 12px 10px;
border-radius: 16px;
background: rgba(95, 111, 58, 0.1);
border: 1px solid rgba(158, 107, 46, 0.28);
text-align: center;
}
.stat-card strong {
display: block;
font-size: 1.55rem;
}
.stat-card span {
color: var(--atlas-olive);
font-size: 0.78rem;
font-weight: bold;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.map-panel {
overflow: hidden;
}
.map-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 18px 20px;
border-bottom: 2px solid rgba(158, 107, 46, 0.24);
}
.region-buttons {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.region-buttons button {
min-height: 34px;
padding: 6px 10px;
font-size: 0.9rem;
}
.map-wrap {
position: relative;
background:
radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.13), transparent 42%),
linear-gradient(180deg, #1f4c70, var(--atlas-water));
}
#worldMap {
display: block;
width: 100%;
min-height: 560px;
touch-action: manipulation;
}
.graticule line {
stroke: rgba(255, 248, 231, 0.18);
stroke-width: 1;
}
.graticule text {
fill: rgba(255, 248, 231, 0.62);
font-size: 12px;
font-family: ui-monospace, Consolas, monospace;
}
.land-shape {
fill: rgba(247, 228, 185, 0.28);
stroke: rgba(255, 248, 231, 0.38);
stroke-width: 1.2;
}
.site-marker {
cursor: pointer;
}
.site-marker circle {
stroke: rgba(255, 248, 231, 0.95);
stroke-width: 2.2;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
.site-marker text {
pointer-events: none;
font-size: 15px;
text-anchor: middle;
dominant-baseline: central;
}
.site-marker.is-selected circle {
stroke: #fff;
stroke-width: 4;
}
.site-label {
fill: rgba(255, 248, 231, 0.88);
font-size: 12px;
font-weight: bold;
font-family: Georgia, "Times New Roman", serif;
paint-order: stroke;
stroke: rgba(14, 31, 51, 0.92);
stroke-width: 4;
}
.tooltip-card {
position: absolute;
left: 20px;
bottom: 20px;
max-width: min(420px, calc(100% - 40px));
padding: 14px 16px;
border: 2px solid rgba(158, 107, 46, 0.6);
border-radius: 16px;
background: rgba(255, 248, 231, 0.95);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.tooltip-card p {
margin: 0;
}
.tooltip-card strong {
display: block;
margin-bottom: 4px;
font-size: 1.1rem;
}
.site-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 12px 0;
}
.site-chip {
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 5px 9px;
border-radius: 999px;
border: 1px solid rgba(158, 107, 46, 0.38);
background: rgba(255, 255, 255, 0.48);
color: var(--atlas-olive);
font-size: 0.82rem;
font-weight: bold;
}
.prompt-box {
margin-top: 12px;
padding: 12px;
border-left: 5px solid var(--atlas-bronze);
border-radius: 12px;
background: rgba(95, 111, 58, 0.1);
}
.prompt-box p {
margin: 0;
}
.site-list {
max-height: 300px;
overflow: auto;
display: grid;
gap: 8px;
margin-top: 14px;
padding-right: 4px;
}
.site-list button {
width: 100%;
text-align: left;
background: rgba(255, 255, 255, 0.54);
border-color: rgba(158, 107, 46, 0.24);
}
.site-list button.is-active {
border-color: var(--atlas-bronze);
background: rgba(158, 107, 46, 0.14);
}
.small-note {
color: var(--atlas-olive);
font-size: 0.9rem;
line-height: 1.45;
}
.code-quest {
margin: 0 24px 28px;
padding: 22px;
border: 3px solid rgba(158, 107, 46, 0.26);
border-radius: 22px;
background: rgba(255, 248, 231, 0.74);
}
.code-quest h2 {
margin: 0 0 10px;
}
.code-quest ul {
margin: 0;
padding-left: 20px;
}
.code-quest li {
margin: 8px 0;
}
code {
background: rgba(95, 111, 58, 0.12);
padding: 2px 5px;
border-radius: 5px;
}
@media (max-width: 980px) {