From 6f10ff8614ef603a9c0aa5b3761bfa4242ac8595 Mon Sep 17 00:00:00 2001 From: Stephen Kraushaar Date: Sat, 25 Jun 2016 01:42:02 -0500 Subject: [PATCH] Support dashed circles --- external/leaflet-src.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/external/leaflet-src.js b/external/leaflet-src.js index 827f415c..ff8a1d00 100644 --- a/external/leaflet-src.js +++ b/external/leaflet-src.js @@ -6117,6 +6117,12 @@ L.Polygon.include(!L.Path.CANVAS ? {} : { L.Circle.include(!L.Path.CANVAS ? {} : { _drawPath: function () { + if (this.options.dashArray) { + var da = typeof(this.options.dashArray) === "string" ? this.options.dashArray.split(",").map(function(el,ix,ar) { return parseInt(el); }) : this.options.dashArray; + this._ctx.setLineDash(da); + } else { + this._ctx.setLineDash([]); + } var p = this._point; this._ctx.beginPath(); this._ctx.arc(p.x, p.y, this._radius, 0, Math.PI * 2, false);