Skip to content

feat: Add GeoJSON, TopoJSON, and ASCII STL interactive renderers#182

Merged
ThisIs-Developer merged 8 commits into
mainfrom
feature/map-and-3d-renderers
Jun 18, 2026
Merged

feat: Add GeoJSON, TopoJSON, and ASCII STL interactive renderers#182
ThisIs-Developer merged 8 commits into
mainfrom
feature/map-and-3d-renderers

Conversation

@ThisIs-Developer

Copy link
Copy Markdown
Owner

Description

This PR introduces three new high-fidelity interactive code block renderers:

  1. GeoJSON (geojson): Displays interactive maps using Leaflet.js, complete with layer bounding autofits and an XSS-safe popup metadata properties explorer table.
  2. TopoJSON (topojson): Converts TopoJSON features dynamically using the TopoJSON Client library and renders them as interactive Leaflet maps.
  3. ASCII STL (stl): Renders 3D models using Three.js, STLLoader, and OrbitControls.

Key Implementation Features

  • Dynamic Lazy Loading: Libraries are only loaded from CDN when their corresponding code block is present.
  • Theme Reactivity: Switching light/dark themes dynamically updates map background tiles and 3D mesh material colors in-place without page reloading.
  • Resource Management: Tracks active WebGL rendering instances to clean up OrbitControls, geometries, materials, and cancel active requestAnimationFrame loops on page re-renders, preventing browser context exhaustion.
  • Offline Capabilities: Configured the desktop app preparation script (prepare.js) to automatically bundle Leaflet CSS, JS, marker image assets, TopoJSON, and Three.js libraries.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploying markdown-viewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 842f023
Status: ✅  Deploy successful!
Preview URL: https://c044daab.markdown-viewer.pages.dev
Branch Preview URL: https://feature-map-and-3d-renderers.markdown-viewer.pages.dev

View logs

@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview, Comment Jun 18, 2026 12:31pm

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploying markdownviewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 842f023
Status: ✅  Deploy successful!
Preview URL: https://16a6ef5a.markdownviewer.pages.dev
Branch Preview URL: https://feature-map-and-3d-renderers.markdownviewer.pages.dev

View logs

@ThisIs-Developer ThisIs-Developer merged commit be03e45 into main Jun 18, 2026
6 checks passed
@ThisIs-Developer ThisIs-Developer deleted the feature/map-and-3d-renderers branch June 18, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant