With this file "segment.geojson", I draw a red segment of thickness 20 :
{ "type": "FeatureCollection", "features&q