Skip to content
albertomorsPublic

About

Turn any place on Earth into a 3D-printable map: OpenStreetMap buildings, terrain, sea floor and detailed 3D buildings where available. Delete, resize and edit any object and exports as glTF, STL or 3mf; in pieces if it's bigger than your printer. Free, no API keys, runs in your browser.

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

map2stl: 3D-printable maps of any place on Earth

Your favorite city on the shelf. A real place for your next tabletop campaign. Find it, select it, shape it in 3D, print it. Real buildings, terrain, rivers and the sea floor, from open data, in your browser. No account, no API key, nothing to install.

Open map2stl

Quick start · How it works · Features · Data sources · User guide

Quick start

Open map2stl.pages.dev in a desktop browser with WebGL 2 (Chrome, Edge, Firefox or Safari) and search for a place. That's all.

Run it yourself

git clone https://github.com/albertomors/map2stl.git
cd map2stl
npm install
npm run build
npm run preview     # http://localhost:4173

Needs Node.js 20.19+ or 22.12+.

How it works

1. Find any place

Search any town, street, address or landmark, draw a rectangle, hexagon, circle or any shape, and fetch it: a first look in seconds, the full detail in about a minute.

Searching for Rome, drawing a free shape over the city center and fetching its 3D data

2. Edit the 3D model

Fly around it. Click anything to change it: delete a building, enlarge your favorite one, turn a square into a park, or swap a landmark for a real 3D model.

Zurich in the 3D view: orbiting over the old town, the river and the lake, with the terrain and building height sliders

3. The real buildings, where cities publish them

Where a city publishes its official 3D buildings, one click swaps OpenStreetMap's blocks for the real thing: every roof, dormer and spire. See Zurich below.

Zurich's old town in the 3D view with OpenStreetMap's buildings: flat-roofed blocks, the Grossmünster's towers among them The same view with swisstopo's official 3D buildings: gabled and hipped roofs, dormers, the Grossmünster's spires

4. Print it, even bigger than your printer

Preview and plan as it will print, with anything too thin for your nozzle flagged in red. Too big for your printer? Split it into pieces that fit your bed and snap back together.

Rome as a 600 mm circle in the export preview: split into 3 × 3 pieces for a 220 mm bed, pulled apart and back together with the Explode view slider

Piece r2c2 of the Rome print in OrcaSlicer on a Creality K1 SE's bed: the Vittoriano and the streets of central Rome around it, ready to slice

5. Other features

  • Water and the sea floor: rivers, lakes, harbors, and the sea at its real depths.
  • Every format you need: STL for any slicer, multi-color 3MF for OrcaSlicer and Bambu Studio, GLB and glTF for Blender, Unity and the web.

Data sources

Data Source License
Map, buildings, roads, water, parks OpenStreetMap via Overpass; base map by OpenFreeMap, search by Photon ODbL
Terrain AWS Terrain Tiles see the registry
Sea floor EMODnet in Europe, NOAA ETOPO 2022 elsewhere CC BY 4.0, public domain
Official 3D buildings swissBUILDINGS3D, 3DBAG, PLATEAU, Hamburg, Helsinki, Hong Kong open data, each its own license (CC BY 4.0 and similar)
Landmark models Wikimedia Commons, Sketchfab (free API token) per model, shown with each

Found a bug?

Click the ? at the top right of the app's panel, describe what happened and Send: it becomes a GitHub issue with a screenshot and what's needed to reproduce it. Or open an issue yourself.

Author

Made by Alberto Morselli, robotics and control engineer. Source: github.com/albertomors/map2stl.

License

map2stl's code is under the MIT License. The data keeps its own licenses (see Data sources);

Support (me)

Like it? Found it useful? Buy me a coffee

About

Turn any place on Earth into a 3D-printable map: OpenStreetMap buildings, terrain, sea floor and detailed 3D buildings where available. Delete, resize and edit any object and exports as glTF, STL or 3mf; in pieces if it's bigger than your printer. Free, no API keys, runs in your browser.

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages