How modelearth/localsite works
Localsite is a static framework for navigation, maps, and data-driven pages. A user can open a datascape, select a map layer, and optionally use search and filters; the framework displays maps and data sourced from JSON APIs, Google Sheets, or CSV files. Other substantial capabilities include industry and trade views, impact visualizations, events, and reusable embeds. The excerpts show template loading and Leaflet map creation; several other modules are indexed but their runtime wiring is not shown, so those links are omitted.
Main entry points: localsite.js Site Framework · map.js Map Views · template-main.html Page Template · leaflet.js Leaflet Maps
Components 21
Site Framework
- Site Framework
js/localsite.js - Page Template
info/template-main.html - Navigation
js/navigation.js - Menu
js/menu.js
Maps and Filters
- Map Views
js/map.js - Leaflet Maps
js/leaflet.js - Map Filters
js/map-filters.js - Earth Filters
js/earth-filters.js - Neighborhood Data
map/neighborhood/js/tabletop.js
Data Experiences
- Industry Explorer
js/naics.js - Industry Detail
js/industry-detail.js - Impact Views
js/impact-sets.js - Earthscape Charts
js/earthscape.js - Trade Controls
js/trade.js - Event Views
js/event.js
Reusable Components
- Content Repository
js/content-repo.js - YAML Support
js/yaml.js - Slide Views
start/slide/js/slides.js - State Data Prep
info/data/map-filters/us-states.py
Other components
- Site Visitor
- Data Sources
Connections 6
- Site Visitor → Site Framework: opens pages
README.md - Site Framework → Page Template: loads template
js/localsite.js - Site Framework → Map Views: displays maps
README.md - Data Sources → Site Framework: supplies data
README.md - Map Views → Leaflet Maps: creates maps
js/map.js - Site Visitor → Earth Filters: sets map filters
README.md