Added special class for circle canvas rendering
This commit is contained in:
parent
a316351364
commit
7d5be23a25
12
src/layer/vector/Circle.Canvas.js
Normal file
12
src/layer/vector/Circle.Canvas.js
Normal 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);
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user