Matteo Tosi

👋 hello fellow humans

A leaflet map with another dimension

Devlog: 2026-11

Leaflet is flat. Gloriously, stubbornly flat. Want buildings, terrain, depth? The usual answer is "switch library". I didn't want to switch.

So on November 3 I open-sourced leaflet-city-mapper: a small WebGPU renderer wrapped in a plain L.Layer. Extruded GeoJSON, glTF models, raster/vector sources, terrain. Your map stays a Leaflet map; it just grows a Z axis.

Day one: 52 commits. Then a release almost every day, from v0.0.8 to v0.1.2 by November 17. I read wgpu and wasm-bindgen along the way for ideas.

Pick a city: Paris, Rome, or a mountain: Matterhorn.

Illustration of leaflet-city-mapper

leaflet-city-mapper, in one picture.

A 3D layer is useless if the 2D map underneath wobbles. So leaflet-rotate got v0.5.3 and v0.5.4, fixing maxBounds and panInside after resetting bearing to 0, then v0.6.0 with Leaflet v2.0.0-beta.3 support. The rest of the fleet followed: elevation, pegman, kmz, trails, and pointable (v0.2.0, v0.2.1). On the day job, a small g3w-client fix for base layer labels.

Then I took it upstream. My plugins made the official Leaflet list, and I opened a discussion on bringing a WebGPU 3D engine to Leaflet. Flat-earthers welcome to reply.

Don't take my word for it. Drag it around:

Pilot ID · SWE

Software Engineer @ g3w-suite

Over a decade fighting enterprise maps. Day job: getting QGIS projects to fly on the web.

Station
g3w-suite · client, server, Docker, plugins
On board since
2012
Side missions
Leaflet plugins, brownfield code
Motto
Peace, love, and lean code.

Callsign · Raruto

This is Raruto.

Just another human in the loop. The helmet does most of the work.

Callsign
Raruto
Name
Matteo Tosi
Home base
github.com/Raruto
Flight log
Debriefs →

Stencil · 01

No step

On a real airframe it marks the panels your boot would punch through. Here it marks the parts held together with duct tape. Tread lightly.

Stencil · 02

Mach 3+ inside

SR-71 cruise speed. This site gets close by shipping almost nothing: plain HTML, one stylesheet, no framework.

Mach 3
Not included.

Stencil · 04

Open hatch

Most of my open-source mileage is Leaflet plugins. Maps that rotate, draw elevation profiles, and lately go 3D.

Hangar
42 airframes →

Stencil · 03

Rust free

No theme, no page builder. Markdown in, HTML out, one small Node script in between. Hand-rolled HTML, like it's 1999.

Source
Raruto/raruto.github.io

Stencil · 05

Best viewed @ 85,000 ft

Roughly where the SR-71 cruised. Down here, any browser from this decade will do.

Ground crew

GitHub Pages

The runway. Markdown in, HTML out, one small Node script in between, pushed to a repo and served from there. No servers to babysit.

Source
Raruto/raruto.github.io
Service
pages.github.com