I wanted a picture of the street I grew up on, drawn like an old isometric game. I couldn't find a tool that did it from real map data, so I wrote one.
npx dioramap "Eiffel Tower, Paris" -t night
About ten seconds later there's a poster in the current folder. A place name, a street address or a pair of coordinates all work.
Where the data comes from
- Nominatim, OpenStreetMap's geocoder, finds the place.
- Roads, water, parks and land use come from OpenFreeMap vector tiles.
- Buildings come from Overture Maps, which merges OpenStreetMap with Microsoft and Google footprints. Towns that are thin on OpenStreetMap still get their buildings this way.
The buildings are read straight out of Overture's PMTiles file and the rest from static vector tiles. There's no server of mine in the middle, so there's no API key and no rate limit.
Heights and roofs
Buildings keep their mapped parts, heights and roof shapes. That's how the Eiffel Tower gets its tapering legs and St Peter's gets its dome. When nobody mapped a height, I guess one from the footprint and how built-up the area around it is.
Making it look like pixel art
three.js renders the scene into a render target at a third of the final size, using the 2:1 camera angle pixel artists use. On top of that go outlines, sun shadows, lit windows, trees and cars. Then the image is scaled up with nearest-neighbour filtering, so every edge stays hard.
There's no AI model anywhere in the pipeline. That's why it never comes out blurry.
Video and GIF
--video makes an MP4 where the flat street map rises into the city building by building, then night falls and the lights come on. The headless browser encodes the H.264 frames with WebCodecs and I write the MP4 container myself, so you don't need ffmpeg.
npx dioramap "Dubai Marina" -t night --video
npx dioramap "Rialto Bridge, Venice" --gif
What it can't do
How good it looks depends on the map data. Big cities come out great. A village nobody has mapped in detail looks sparse, and dioramap won't invent buildings to fill it in.
Try it
You need Node 20 or newer and Chrome, Edge or Chromium installed.
npx dioramap "your street, your city"
The code is MIT licensed: https://github.com/omlahore/dioramap
If you render your hometown, I'd like to see it.


Top comments (1)
The rise from flat street map to lit city is the best demo this tool could have, because it shows the whole pipeline in a few seconds with no explanation needed. When you share the MP4, check the opening frame: plenty of players and feeds show it as the still before anyone presses play, and a flat grey map undersells the result. Holding the finished night shot for half a second at the start, then playing the build, fixes that.