# how to add polyline overlay on Cesium3DTileset

**URL:** <https://community.cesium.com/t/how-to-add-polyline-overlay-on-cesium3dtileset/6962>\
**Category:** CesiumJS\
**Created:** [May 27, 2018, 7:14am UTC](https://community.cesium.com/t/how-to-add-polyline-overlay-on-cesium3dtileset/6962 "2018-05-27T07:14:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jameszhanmin](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@jameszhanmin](https://community.cesium.com/u/jameszhanmin)\
**Post date:** [May 27, 2018, 7:14am UTC](https://community.cesium.com/t/how-to-add-polyline-overlay-on-cesium3dtileset/6962/1 "2018-05-27T07:14:21Z")

</div>

1. A concise explanation of the problem you're experiencing.

i want to add custom polyline or polygon with outline on Cesium ,before do this i have added a Cesium3DTileset on Cesium,i want to all entites which i added overlay the 3dTileSet

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

viewer.entities.add({  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;polygon : { // it works and i expect  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hierarchy :e.polygon.hierarchy,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;material : Cesium.Color.RED.withAlpha(0.5),  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;classificationType : Cesium.ClassificationType.BOTH  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});

viewer.entities.add({  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;polygon : { // i want to show polygon border, it not works  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hierarchy :e.polygon.hierarchy,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;material : Cesium.Color.RED.withAlpha(0.5),  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;classificationType : Cesium.ClassificationType.BOTH,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;outline:true  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});

PolylineGraphics do not have classificationType property,so i have no idea for this case.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

i want to add wms overlay Cesium3DTileset,but there is no way,so i use js to load wms data and render with js, i hope all renderable layers,entites overlay Cesium3DTileset

4. The Cesium version you're using, your operating system and browser.  
Cesium 1.45.0 chrome

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [May 27, 2018, 6:21pm UTC](https://community.cesium.com/t/how-to-add-polyline-overlay-on-cesium3dtileset/6962/2 "2018-05-27T18:21:10Z")

</div>

It is not possible yet to drape polylines over 3D Tiles.

But… we have a PR open for [polylines on terrain](https://github.com/AnalyticalGraphicsInc/cesium/pull/6615) and 3D Tiles support should be soon to follow.
