Added special class for circle canvas rendering

This commit is contained in:
florian 2011-06-20 20:16:16 +02:00
parent a316351364
commit 7d5be23a25

View File

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