Skip to content

Beakerboy/OSMBuilding

Repository files navigation

Badge Coverage Status

OSM Building Viewer

Visualize an OSM Building in 3D

To visualize a building tagged with a way, use the URL: https://beakerboy.github.io/OSMBuilding?id=[id]

If the building is a multipolygon, or a relation, use: https://beakerboy.github.io/OSMBuilding?type=relation&id=[id]

...replacing [id] with the actual id of the way or relation.

Additional details will be displayed if &info is appended to the URL.

Console debug messages can be printed to the screen if &errorBox is appended to the url. Helpful since mobile browsers often lack any inspection capability.

Use the left mouse button to rotate the camera. To move, use the right one.

Supports:

  • Ways with a building tag
  • Ways with building parts inside.
  • Building relations with way and/or multipolygon parts
  • Multipolygon buildings
  • Multipolygon building with multiple open ways which combine to a closed way.

Roof Types:

  • Flat
  • Skillion
  • Dome
  • Pyramidal
  • Gabled

Examples:

Specify the osmApiUrl parameter to use other OSM APIs. Examples:

About

render an individual OSM building

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5