How I used AI to build a lightweight open-source 3D Earth with CesiumJS
Description and use
A lightweight web‑based 3D Earth with multiple basemaps, measurement tools, and city‑level detail, built with CesiumJS and AI assistance.
Problem
Create a lightweight, browser‑based interactive 3D Earth that supports multiple basemaps, measurement tools, and city‑level detail without a build step.
Outcome
Locus‑Earth delivers a fully functional, lightweight 3D Earth in the browser with advanced features and no build step, leveraging AI tools to expedite development.
Workflow
- 1. Chose CesiumJS 1.118 as the rendering engine.
- 2. Built the application with native ES modules and no build step.
- 3. Added PWA support via Service Worker and Manifest.
- 4. Integrated multiple basemaps (Sentinel‑2, Blue Marble, night lights, Tianditu, Tencent Maps).
- 5. Implemented interactive tools: distance/area measurement snapped to terrain, markers, and local favorites import/export.
- 6. Added location search to fly to a place by name.
- 7. Enabled scene integration: auto‑high‑precision city models for Denver, Washington D.C., Sydney, etc., and street view for mainland China using qq‑map viewer.
- 8. Developed UI/UX features: day/night lighting, white model toggle, dark/light theme, compass, draggable floating toolbar adapted for mobile.
- 9. Used AI assistance (DeepSeek, GitHub Copilot, Tencent Hunyuan) to accelerate coding.
- 10. Published the project on GitHub (MIT License) and demonstrated it via a free Cesium ion tier demo.
Evidence
I’ve been working on an open‑source project called Locus‑Earth recently. It’s a lightweight, browser‑based interactive 3D Earth built with CesiumJS.
Multi‑basemap Switching: Sentinel‑2, Blue Marble, night lights, TianDiTu, Tencent Maps, etc.
Interactive Tools: Distance/Area measurement (snapped to terrain), markers, and browser‑local favorites (import/export supported).
Scene Integration: Auto high‑precision city models when entering Denver, Washington D.C., Sydney, etc. Street View appears when entering mainland China!
Tech Stack & Acknowledgements: Engine: CesiumJS 1.118; Architecture: Native ES Modules, Zero build step; Form: PWA (Service Worker + Manifest); AI Assistance: DeepSeek, GitHub Copilot, Tencent Hunyuan.
Special Thanks: Tencent Street View uses a community‑maintained third‑party viewer, qq‑map, to open panoramas (not an official Tencent service).
- Record date: 2026-10-11T06:55:54.053Z