arthur-e / Wicket

A modest library for moving between Well-Known Text (WKT) and various framework geometries
https://arthur-e.github.io/Wicket/
Other
586 stars 226 forks source link

Bugfix: Check for circle constructor #131

Closed janu75 closed 6 years ago

janu75 commented 6 years ago

Pull request to fix issue #130

   // L.Circle ////////////////////////////////////////////////////////////////
        if (obj.constructor === L.Rectangle || obj.constructor === L.rectangle) {
console.log('Deconstruction of L.Circle objects is not yet supported');

The test is currently checking for constructor L.Rectangle, but obviously this should be L.Circle/L.circle.