handlerPolygon = new Cesium.DrawHandler(viewer, Cesium.DrawMode.Polygon);
handlerPolygon.deactivate();
handlerPolygon.clear();
handlerPolygon.activate();
handlerPolygon.drawEvt.addEventListener((res: any) => {
viewer.entities.removeById(handlerPolygon.polyline.id);
polygonObj = res.object;
polygonEntity = res.object.polygon;
polygonEntity.outlineColor = new Cesium.Color(1, 1, 0, 1);
polygonEntity.outlineWidth = 1;
polygonEntity.material.color = new Cesium.Color(1, 0, 0, 0.6);
commStore.changeShowEditPlot(true);
});
我用如上的方法绘制多边形,能够绘制成功,但是没有显示出轮廓线,我想要修改轮廓线的宽度和颜色,但是看不到轮廓线,该怎么设置呢?