A developer has created a command-line tool that turns any location on Earth into a pixel-art diorama. The tool, called dioramap, renders real-world maps as retro-style isometric scenes, mimicking classic video game aesthetics. Source: dev.to.
What It Does
The tool takes a place name, street address, or coordinate input and generates a visual representation of that location.
For example, running npx dioramap "Eiffel Tower, Paris" -t night produces a poster in the current folder within about ten seconds.
How It Works
The tool uses open-source map data from several public sources:
- Nominatim finds the location using OpenStreetMap’s geocoder.
- OpenFreeMap provides vector tiles for roads, water, parks, and land use.
- Overture Maps supplies building data by merging OpenStreetMap with Microsoft and Google footprint data. This helps fill in areas where OpenStreetMap lacks detail.
Buildings are read directly from Overture’s PMTiles files. The rest of the scene uses static vector tiles.
Visual Style and Rendering
The scene is rendered using three.js at a third of its final size, using a 2:1 camera angle common in pixel art.
After rendering, the tool adds features like:
- Outlines around buildings
- Shadows from the sun
- Lit windows and trees
- Cars and other small details
The final image is scaled up using nearest-neighbor filtering, preserving sharp edges and avoiding blurriness.
Video and GIF Output
Users can generate videos or GIFs with specific commands:

npx dioramap "Dubai Marina" -t night --videocreates an MP4 where the map rises building by building, then night falls and lights come on.npx dioramap "Rialto Bridge, Venice" --gifproduces a GIF of the scene.
The video is encoded using WebCodecs in a headless browser. The MP4 container is built manually, eliminating the need for ffmpeg.
Limitations
The quality of the output depends entirely on the map data available.
Big cities with detailed mapping produce rich, full scenes. Villages or areas with sparse data appear sparse and may lack buildings.
The tool does not invent or interpolate buildings. It only renders what exists in the source data.
How to Try It
Users need:
- Node.js version 20 or newer
- Chrome, Edge, or Chromium installed
Run the command: npx dioramap "your street, your city".
The code is open-source and licensed under the MIT license. It’s available at github.com/omlahore/dioramap.
The creator invites users to share their hometown renders. They’d like to see what their own neighborhoods look like in this style.
This project demonstrates how simple tools can turn public data into expressive, nostalgic visuals — without AI or cloud servers.
Sources & further reading
Featured image: original publisher image. Via original publisher. Image source
