Matteo Tosi

👋 I build stuff that doesn't stall.

When a Map says “Ctrl + Scroll”

Devlog: 2019-06

Scroll down a page, hit an embedded map, and suddenly you're zooming instead of scrolling. Leaflet.GestureHandling fixes that with a "use Ctrl + scroll" prompt.

On June 20 I started leaflet-gesture-handling, based on elmarquis's work, and sent the changes upstream as v1.1.9: updated build deps, CSS transitions, the fade-out I'd asked for in May, a locale option. That pull request is still open. Demo.

A map prompting the user to use Ctrl and scroll

The gesture-handling prompt.

The rest of June was small plugins. leaflet-trails puts Waymarked Trails overlays on Leaflet; leaflet-pointable makes semi-transparent tiled overlays clickable. See the trails examples and the pointable demo.

Waymarked trails on a Leaflet map

An illustration of the trails overlay.

leaflet-npm: starter bundles, one branch each for Browserify, Rollup and webpack. Old dependencies; check before reuse.

leaflet-control-layers-inline: street, terrain and imagery in a horizontal selector. Demo.

An inline layer selector on a map

The inline layers control.

leaflet-ui: base layers and controls as one configurable preset. Demo.

A Leaflet map with interface controls

An illustration of Leaflet UI.

Also: commits to leaflet-kmz, leaflet-transparency and wordpress-git. And one ticket on togeojson: no .umd files in releases after 1.0.0. Fixed in 3.0.1, six minutes later.

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