From 7d5be23a25e197ef57ee6cf7043495ecddfac034 Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 20 Jun 2011 20:16:16 +0200 Subject: [PATCH] Added special class for circle canvas rendering --- src/layer/vector/Circle.Canvas.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/layer/vector/Circle.Canvas.js diff --git a/src/layer/vector/Circle.Canvas.js b/src/layer/vector/Circle.Canvas.js new file mode 100644 index 00000000..924d0838 --- /dev/null +++ b/src/layer/vector/Circle.Canvas.js @@ -0,0 +1,12 @@ +/* + * Circle canvas specific drawing parts. + */ + +L.Circle = L.Path.SVG || !L.Path.Canvas ? L.Circle : L.Circle.extend({ + _drawPath : function() { + this._updateStyle(); + var p = this._point, + r = this._radius; + this._ctx.arc(p.x,p.y,r, 0,Math.PI*2); + } +});