# Why PolygonGraphics' outlineWidth property doesn't work

**URL:** <https://community.cesium.com/t/why-polygongraphics-outlinewidth-property-doesnt-work/21964>\
**Category:** CesiumJS\
**Created:** [January 17, 2023, 3:58am UTC](https://community.cesium.com/t/why-polygongraphics-outlinewidth-property-doesnt-work/21964 "2023-01-17T03:58:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sd1036770](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sd1036770/32/11580_2.png) [@sd1036770](https://community.cesium.com/u/sd1036770)\
**Post date:** [January 17, 2023, 3:58am UTC](https://community.cesium.com/t/why-polygongraphics-outlinewidth-property-doesnt-work/21964/1 "2023-01-17T03:58:56Z")

</div>

I use GeoJsonDataSource to load some polygon and i want to set a outlineWidth of every polygon,but the outlineWidth property of PolygonGraphics is useless,whatever the width set,it shows the same width

```auto
Cesium.GeoJsonDataSource.load('./data/data.json').then(dataSource => {
        viewer.dataSources.add(dataSource);
        var entities = dataSource.entities.values;
        entities.forEach(function(entity,index){

          entity.polygon.fill = Cesium.Color.WHITE.withAlpha(0.0001);
          entity.polygon.outline = true;
          entity.polygon.outlineColor = Cesium.Color.YELLOW;
          entity.polygon.outlineWidth = 50;
        });
      });

```

---

<div class="post-metadata">

**Author:** ![anneg](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/anneg/32/11217_2.png) [@anneg](https://community.cesium.com/u/anneg)\
**Post date:** [January 18, 2024, 9:11am UTC](https://community.cesium.com/t/why-polygongraphics-outlinewidth-property-doesnt-work/21964/2 "2024-01-18T09:11:38Z")

</div>

Are you working on Windows? It seems Windows is the limitation, see:

> <https://github.com/CesiumGS/cesium/issues/4223>
>
> While running this code:
> 
> \`\`\`
> Cesium.Math.setRandomNumberSeed(1234);
> 
> var viewer… = new Cesium.Viewer('cesiumContainer', { infoBox : false });
> var entities = viewer.entities;
> var positions = Cesium.Cartesian3.fromDegreesArray(\[
> -107.0, 31.0,
> -107.0, 39.0,
> -97.0, 39.0,
> -97.0, 31.0
> \]);
> 
> entities.add({
> polygon : {
> height: 0,
> hierarchy : new Cesium.PolygonHierarchy(positions),
> material : Cesium.Color.BLUE,
> outline: true,
> outlineColor: Cesium.Color.RED,
> outlineWidth: 50
> }
> });
> 
> 
> viewer.zoomTo(viewer.entities);
> \`\`\`
> 
> Note the outlineWidth set to 50, which should draw a fairly thick outline.
> 
> But the outline is fairly thin, and doesn't change if you modify the value to something else, say 1, or 200.
> 
> !\[image\](https://cloud.githubusercontent.com/assets/1951843/17859860/e8aa7f1a-6850-11e6-912d-da4612d73916.png)
