# 3D-Tile Style on 3d-Tileset with a b3dm in it

**URL:** <https://community.cesium.com/t/3d-tile-style-on-3d-tileset-with-a-b3dm-in-it/7769>\
**Category:** CesiumJS\
**Created:** [December 4, 2018, 12:10pm UTC](https://community.cesium.com/t/3d-tile-style-on-3d-tileset-with-a-b3dm-in-it/7769 "2018-12-04T12:10:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mholthausen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mholthausen/32/2615_2.png) [@mholthausen](https://community.cesium.com/u/mholthausen)\
**Post date:** [December 4, 2018, 12:10pm UTC](https://community.cesium.com/t/3d-tile-style-on-3d-tileset-with-a-b3dm-in-it/7769/1 "2018-12-04T12:10:24Z")

</div>

1. A concise explanation of the problem you're experiencing.  
I can't use 3D-Tiles Style on a 3D-Tileset with a b3dm in it to change its color. If I apply this code, the style is added to the Tileset-Object but the color doesn't change. No specified style is converted to the Tileset.

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.  
let tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url: 'URL\_TO\_TILESET.json',  
&nbsp;&nbsp;&nbsp;&nbsp;}));  
let tstyle = new Cesium.Cesium3DTileStyle();  
tstyle.color = 'color("blue")';  
tileset.readyPromise.then(function () {  
tstyle.readyPromise.then(function() {  
&nbsp;&nbsp;&nbsp;&nbsp;tileset.style = tstyle;  
});  
}).otherwise(function (error) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(error);  
&nbsp;&nbsp;&nbsp;&nbsp;});

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.  
Change the color by a user of a vertical layer implemented as b2dm/3D-Tileset into Cesium

4. The Cesium version you're using, your operating system and browser.  
1.51; Firefox; Linux Mint

---

<div class="post-metadata">

**Author:** ![mholthausen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mholthausen/32/2615_2.png) [@mholthausen](https://community.cesium.com/u/mholthausen)\
**Post date:** [December 4, 2018, 2:15pm UTC](https://community.cesium.com/t/3d-tile-style-on-3d-tileset-with-a-b3dm-in-it/7769/2 "2018-12-04T14:15:34Z")

</div>

I realized, that my tileset has a lot of triangles, but zero features to colorize.. What's up with the "features" of a tileset? How do I render features into my tileset?

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [December 4, 2018, 7:10pm UTC](https://community.cesium.com/t/3d-tile-style-on-3d-tileset-with-a-b3dm-in-it/7769/3 "2018-12-04T19:10:09Z")

</div>

We had this problem with photogrammetry tilesets which also didn’t have any features, and this PR fixes that:

> <https://github.com/CesiumGS/cesium/pull/7255>

I think this should be out in the latest CesiumJS version which just came out yesterday (version 1.51). Can you try that and let me know if it works for you?

---

<div class="post-metadata">

**Author:** ![mholthausen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mholthausen/32/2615_2.png) [@mholthausen](https://community.cesium.com/u/mholthausen)\
**Post date:** [December 5, 2018, 12:23pm UTC](https://community.cesium.com/t/3d-tile-style-on-3d-tileset-with-a-b3dm-in-it/7769/4 "2018-12-05T12:23:01Z")

</div>

Thanks a lot! In Version 1.52 this works now as desired!
