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

wicket-leaflet deconstruct: Typo for L.Circle #130

Closed janu75 closed 6 years ago

janu75 commented 6 years ago

Hi

This bug is both in release 1.3.4 and the main repo. In file wicket-leaflet.js, function Wkt.Wkt.prototype.deconstruct:

   // 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.

smithcommajoseph commented 6 years ago

Closed by https://github.com/arthur-e/Wicket/pull/131