# PolylineDashMaterialProperty not working

**URL:** <https://community.cesium.com/t/polylinedashmaterialproperty-not-working/6421>\
**Category:** CesiumJS\
**Created:** [January 2, 2018, 1:04pm UTC](https://community.cesium.com/t/polylinedashmaterialproperty-not-working/6421 "2018-01-02T13:04:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kfirbene](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@kfirbene](https://community.cesium.com/u/kfirbene)\
**Post date:** [January 2, 2018, 1:04pm UTC](https://community.cesium.com/t/polylinedashmaterialproperty-not-working/6421/1 "2018-01-02T13:04:11Z")

</div>

Hi,

I am trying to create a dashed polyline and I run into a weird issue.

The material:

var myMaterial = new Cesium.PolylineDashMaterialProperty({

color: Cesium.Color.WHITESMOKE,

gapColor: Cesium.Color.TRANSPARENT

});

The poly line:

var myPolyline = Cesium.entities.add({

id: name + ‘\_polyline’,

height: 0,

polyline: {

positions: [new Cesium.Cartesian3(uPosition.x, uPosition.y, uPosition.z),

new Cesium.Cartesian3(newCenter.x, newCenter.y), newCenter.z)],

width: 3,

material : myMaterial

}

});

The issue is that when I put a break point at the material, I get there, but it is hanging there and not reaching the myPolyline creation when I continue.

Any idea?

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [January 2, 2018, 8:53pm UTC](https://community.cesium.com/t/polylinedashmaterialproperty-not-working/6421/2 "2018-01-02T20:53:49Z")

</div>

Hi there,

Looks like you have an extra parenthesis:

new Cesium.Cartesian3(newCenter.x, newCenter.y), newCenter.z)

``

Make sure your code is syntactically correct, then see if you’re still having any problems.

Thanks,

Gabby
