jieter / Leaflet-semicircle

Extend Leaflet's circle class to display semicircles.
http://jieter.github.io/Leaflet-semicircle/examples/semicircle.html
MIT License
123 stars 52 forks source link

Layer type checking in Canvas renderer #24

Closed itytwt closed 7 years ago

itytwt commented 7 years ago

It seems that instanceof SemiCircle checking for the layer in _updateCircle function of SVG renderer, added in fix fdb647e2f7672cb53a247f7e09fc1e1f928355e7, should also be applied to Canvas renderer.

Otherwise, the same error as reported in #20 will occur when drawing L.circle using Canvas.

jieter commented 7 years ago

@lubrige looks like you are right, are you able to make a pull request?

itytwt commented 7 years ago

I've made one. Thank you.