We've just updated Cesium OSM Buildings

Cesium OSM Buildings is a 3D Tileset derived from OpenStreetMap covering the entire world, available on Cesium ion. Read more about it here: Cesium OSM Buildings | cesium.com.

We regularly update Cesium OSM Buildings. This topic is a changelog so you can keep track of these changes. Subscribe to this topic to get notified for these updates by changing your notification setting to Watching at the bottom of this thread:


September 1

  • Updated to the latest OSM data as of August 28, 2020.
  • Improved handling of building parts inheriting incorrect heights from parent nodes. This previously caused some buildings to have missing pieces.
  • Added two new properties, cesium#longitude and cesium#latitude, to expose the location of the building center in degrees.

This last one now allows you to style buildings based on their distance to a known location! This is useful for creating heatmaps, to visualize the proximity of all buildings to an explosion site, or to a volcano for example:

Buildings in Auckland, New Zealand, colored by their proximity to Maungawhau, a dormant volcano.

Here’s a minimal Sandcastle example showing how to color Cesium OSM Buildings based on distance to a particular longitude and latitude.


October 1

  • Updated OSM data to timestamp 2020-09-29T02:28:02Z.
  • Fixed a bug that could cause very long and narrow tiles to be created in detailed cities, leading to less-than-optimal rendering and level-of-detail performance.
1 Like

If you use viewer.scene.primitives.add(Cesium.createOsmBuildings()) to include the OSM Buildings how can you easily remove the buildings if desired?

@Rob You can treat the OSM Buildings as any Cesium3DTileset, which has a show property. Setting this show property to false will hide the buildings!

@dzung thank you for the quick response. I also discovered that when I create the tileset using the call above I can save a reference to the returned object. I can then use viewer.scene.primitives.remove to remove that tileset from the scene.

Thanks again!

1 Like

November 1

Cesium OSM Buildings has been updated to OSM timestamp 2020-10-28T04:50:02Z.


Is there a way to force all buildings within a certain distance from the eye point to show? It seems buildings display at different eye distances or based on some various factors. I’d like to be able to have all buildings within a certain distance from the eye to display.

Hi Rob,

Are you referring to the camera’s position? We have an example to use a building’s location as the center to color buildings surrounding it (https://cesium.com/docs/tutorials/3d-tiles-styling/). You can do something similar and use the camera as the central position, and based on the distance of each building from the camera, use the show properly to display it.

For future questions related to Cesium OSM Buildings, please post it as a separate question under the “Support” tag. That way other users can filter and search for the question more easily.

January 4, 2021

Cesium OSM Buildings has been updated to OSM timestamp 2020-12-30T04:15:02Z.


February 2, 2021

Cesium OSM Buildings has been updated to use OSM data!

February 28, 2021

Cesium OSM Buildings has been updated to OSM timestamp 2021-02-28T12:37:06Z.

May 03, 2021

Cesium OSM Buildings has been updated to OSM timestamp 2021-04-28.