I know https://gis.stackexchange.com/questions/127624 has been asked earlier but the solution proposed is not working. My code is : <!-- language: javascript --> var calculateStyle = new ol.style.Style({ fill: new ol.style.Fill({ color: [255, 255, 255, 0.6], opacity: 0.3 }), stroke: new ol.style.Stroke({ color: [0, 153, 255, 1], inedash: [40,40], width: 3 }) }); I tried both `[4,4]` and `[40,40]` suggested in the question linked. But it's not working. [1]: https://gis.stackexchange.com/questions/127624/line-dash-not-working-ol3-openlayers-3