Introducing OSM Simple 3D Editor — buildings and indoor floor plans in one view

Hello everyone!

I’ve been working on OSM Simple 3D Editor, a browser-based editor for OpenStreetMap buildings. It combines editing based on the Simple 3D Buildings scheme with a floor-by-floor view of indoor data. My goal is to make it easier to understand how building parts and mapped spaces fit together while editing them.

Try it: OSM Simple 3D Editor
Source code and issues: GitHub - FelisPimeja/osm-simple3d-editor: Browser-based 3D building editor for OpenStreetMap (Simple 3D Buildings): MapLibre + three.js, no backend · GitHub

For buildings, you can edit tags and geometry directly in 3D: draw and split parts, move them, extrude faces, and use snapping and guides. The editor also supports type=building relations and multipolygons, with undo/redo, validation and upload to OSM through OAuth.

For indoor mapping, you can select a floor and view its mapped rooms, corridors, areas, walls, columns and doors within the building. The view uses tags such as indoor=*, level=* and repeat_on=*; it also shows stairs and elevators across floors. Indoor objects can be selected, and their tags can be edited alongside the building.

The project is still evolving. I’d particularly welcome examples of buildings with complex parts or indoor layouts that the editor handles poorly. If you try it, please share an OSM link and describe what you expected to see or do. Feedback on the floor navigation and the connection between indoor data and the 3D building would be especially helpful.

What would you need from a tool like this in your mapping workflow?

54 Likes

Wow! Holy crap! :slight_smile:

8 Likes

Awesome tool!

Maybe some way to get to the location I want to edit. If starting the editor, I’m in the middle of Moscow and loading all the data, then I need to get to the actual location, I want to edit. Like having a workflow like osm.org has with iD would be helpful.

1 Like

Thanks, Henning! You’re right — opening in Moscow made it awkward to get to the place you wanted to edit. I fixed this today: on the first visit, the editor now opens with a world view and prompts you to zoom in to your area of interest. After that, it remembers your camera position and restores it the next time you open it. Please give it another try and let me know how it feels.

1 Like

Very impressive!

Now, if we could come to an agreement among 3D builders to find a common language and implementation for roofs …

6 Likes

@Felis_Pimeja does perfect roof:shape=mansard for non-convex bases, and a bit strange roof:shape=gabled:

Fortunately, Felis and myself have the same native language :slight_smile:

1 Like

Share a link and I’ll have a look

Here it is: Way: ‪8 Пятницкая улица‬ (‪79980560‬) | OpenStreetMap

It seems that the algorithm for roof:shape=gabled is overcomplicated at some step.
It should follow roof:shape=hipped, but triangular roof faces should be verticalized. At least it seems so for me :slight_smile:

1 Like

Thanks for the example! roof:shape=gabled and roof:shape=mansard are built with the same algorithm, based on the hipped roof construction. I’ve added a little approximation to avoid kinks in the roof slopes and smooth out small artifacts.

For this particular building, though, I think the main issue is its footprint geometry. Compare the outline with the satellite imagery: I adjusted it slightly in JOSM and got a much more plausible roof.

roof_algo

1 Like

We could start with OSM Wiki pages for renderer (not for user, tagging buildings)

  • Define and agree the solutions in detail,
  • even ad a pseudo-code for things like roof-direction, parts replace footprint, roof-shape, …
  • Common code libraries to be used by the renderer. We have Java, Type-/Javascript and I would like it in Rust too.
1 Like

I have to admit it’s not as bad as it seemed at first. From what I can see, apse_gabled and side_hipped are not supported. I also get quite a few warnings “Parts leave ..% of the area uncovered …” for some but not all overhanging roofs (that are part of the building outline).

Plus a couple of implementation specific mismatches of fitting roofs together, probably difficult to avoid. I’m mapping in a rural area where building outlines and roofs are often not regular.

1 Like

Thanks for the feedback! I’d appreciate direct links to a few of the buildings where you’re seeing these issues. You can simply copy the URL from the editor’s address bar — that will make debugging much easier.

I’ve only just added the validation panel, and it is still a bit noisy. I’m working on refining the checks and reducing false positives.

2 Likes

That’s something I have planned too. The implementation is still a work in progress, and I’m actively debugging it. Once the results are reasonably stable, I’ll work on documenting the algorithms and extracting reusable components.

1 Like

@Felis_Pimeja Thanks a lot. This is very impressive. I didn’t finf to option to define the roof orientation.

@Pan, the roof orientation field appears when you select a roof shape that supports it, such as gabled, hipped, or round. Try selecting the roof shape first, and the orientation field should appear.

1 Like

Thanks. Sorry, i was just looking for “orientation” but should have looked better.

3 Likes

I was looking for a field based on tag name too.

I’m planning to use ID editor presets. So things will be less confusing.

4 Likes

Thx very much for this impressive tool. I’ve just heard aboout it and started to use one minute later :slight_smile:

Sorry if this has been already asked, but would it be possible to differentiate trees (known as objects natural=tree) from trees randomly generated in a area represented by natural=wood?

1 Like

That’s also on my plan. Still thinking how to better differentiate them

1 Like