Merge pull request #5115 from marcjansen/line-dash-doc

Clarify that lineDash has no effect in IE 10 and below
This commit is contained in:
Marc Jansen
2016-03-29 10:15:09 +02:00
2 changed files with 13 additions and 1 deletions

View File

@@ -6713,7 +6713,13 @@ olx.style.StrokeOptions.prototype.lineJoin;
/**
* Line dash pattern. Default is `undefined` (no dash).
* Line dash pattern. Default is `undefined` (no dash). Please note that
* Internet Explorer 10 and lower [do not support][mdn] the `setLineDash`
* method on the `CanvasRenderingContext2D` and therefore this option will
* have no visual effect in these browsers.
*
* [mdn]: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility
*
* @type {Array.<number>|undefined}
* @api
*/

View File

@@ -151,6 +151,12 @@ ol.style.Stroke.prototype.setLineCap = function(lineCap) {
/**
* Set the line dash.
*
* Please note that Internet Explorer 10 and lower [do not support][mdn] the
* `setLineDash` method on the `CanvasRenderingContext2D` and therefore this
* property will have no visual effect in these browsers.
*
* [mdn]: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility
*
* @param {Array.<number>} lineDash Line dash.
* @api
*/