skinny.

Latest / OsmAnd Blog

From Map Data to 3D Buildings in OsmAnd

In films like Angels & Demons, Rome never feels flat. The city unfolds through narrow streets, archways, inner courtyards, and massive stone buildings rising above the crowd. You remember not only where the characters go, but the space around them — the height of the facades, the passages through buildings, the way entire streets disappear beneath arches before opening into another square.

But on most digital maps, cities lose that depth. Buildings become flat shapes, reduced to outlines that show where something exists, but not how the city actually feels. For mappers, this is where building…

Read the full description

data starts to matter.

In OpenStreetMap, buildings can contain far more than a simple outline. Mappers can describe a building's height, the number of floors, where different sections begin, and even passages running through the structure. OsmAnd uses this data to transform flat map geometry into detailed 3D cityscapes. Buildings gain height, complex structures become distinguishable, and streets start to feel closer to the real places they represent.

Photo by Gabriella Clare Marino on Unsplash

How Buildings Become 3D​

Every building on an OpenStreetMap-based map starts as a polygon, a flat outline drawn around the footprint of a structure. That outline tells the map where the building is, but nothing about its shape in space.

The transformation begins with a single tag: building=*. Once a polygon carries this tag, OsmAnd knows it represents a structure and can extrude it vertically. But without height information, every building gets the same default height — a uniform cityscape that feels more like a model kit than a real place.

This is where height tags change everything. When a mapper adds height=* with a value in meters, OsmAnd uses that exact figure to determine how tall to render the building. If the height is not known precisely, building:levels=* works as a practical alternative: OsmAnd treats each level as approximately 3 meters, so a five-story building tagged building:levels=5 renders at around 15 meters. For buildings that don't start at ground level, min_height=* defines where the walls begin, useful for elevated sections, overhangs, or structures built above a passageway.

The result is immediate. Buildings stop being identical flat shapes and start reflecting what actually exists: a two-floor residential house next to a nine-floor apartment block, a low market hall beside a tall church tower. The map begins to carry real spatial information.

For Rome specifically, this matters a great deal. The city mixes centuries of architecture at wildly different scales. A single block might contain a Renaissance palazzo, a medieval tower remnant, and a modern addition — all at different heights, all worth mapping accurately.

More Complex Structures​

Not every building is a simple box. A cathedral might have a nave, a transept, and a tower, each rising to a different height. The Pantheon in Rome combines a cylindrical rotunda with a colonnaded porch, two distinct volumes at different heights within a single structure. A shopping arcade might combine a low glass atrium with a taller surrounding structure. In OpenStreetMap, these buildings can be mapped using building:part=*, which allows a single structure to be broken into sections, each with its own height and shape.

When a building is split into parts, OsmAnd renders each section independently. A part tagged with height=15 sits lower than a neighboring part tagged with height=40, and the result on the map reflects the actual silhouette of the building rather than a single averaged block. For complex structures, this is the difference between a recognizable landmark and a generic shape.

To group parts into a coherent whole, mappers use a type=building relation. The relation connects the outer outline of the building with its individual parts, giving OsmAnd the context it needs to render them together correctly. Without this relation, parts and outlines can conflict, producing rendering errors or overlapping geometry.

Passages Through Buildings​

Archways, vaulted passages, and cov

Log in to save or queue this episode.

Short listen plan

No short plan yet. We need saved quotes in chapters with known start and end times, backed by a timed transcript.

The skinny

The skinny isn't ready yet — notes appear once the transcript is processed.