OSM Building Viewer
| OSM Building Viewer | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Author: | Kevin Nowaczyk | |||||||||||||||||||||||||||||||||||||
| License: | MIT License (free of charge) | |||||||||||||||||||||||||||||||||||||
| Platform: | Web | |||||||||||||||||||||||||||||||||||||
| Status: | Active | |||||||||||||||||||||||||||||||||||||
| Website: | beakerboy | |||||||||||||||||||||||||||||||||||||
| Source code: | Beakerboy/OSMBuilding/ GitHub | |||||||||||||||||||||||||||||||||||||
| Programming language: | JavaScript | |||||||||||||||||||||||||||||||||||||
|
Visualizes an individual building as a 3D model |
||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
OSM Building Viewer (also known as OSMBuilding) is a tool for rendering an individual building as a three-dimensional model. It accepts a building=* way ID or type=building relation ID as part of the URL, fetches the element directly from the OSM API, renders the building according to the Simple 3D Buildings tagging scheme. It accepts alternative API endpoints, such as those belonging to OpenHistoricalMap and OpenGeofiction.
Links examples
Way building (Petronas Towers)
https://beakerboy.github.io/OSMBuilding?id=279944536
multipolygon relation (Leaning Tower of Pisa)
https://beakerboy.github.io/OSMBuilding/index.html?type=relation&id=12982338
Building from OpenGeofiction
Template for utilsplugin2 for render data from JOSM
https://beakerboy.github.io/OSMBuilding?type={#type}&id={#id}&fromFile=http://localhost:8111/export
Render from .osm file
https://beakerboy.github.io/OSMBuilding?fromFile
Render from Overpass data
[date:"2020-01-01T00:00:00Z"][bbox:{{bbox}}];
nwr[building];
(._;>;);
out meta;
In Overpass Turbo click Export and copy URL from raw data directly from. Add this URL into fromFile= param.
External links
- Official website
- Beakerboy/OSMBuilding GitHub – documentation and source code