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); + } +});