Fix an error when creating a nogo circle

This commit is contained in:
Phyks (Lucas Verney) 2019-02-20 10:06:31 +01:00
parent 6e60751db0
commit ab06b8a8d1

View file

@ -114,7 +114,9 @@ BR.NogoAreas = L.Control.extend({
getOptions: function() { getOptions: function() {
return { return {
nogos: this.drawnItems.getLayers() nogos: this.drawnItems.getLayers().filter(function (e) { return e instanceof L.Circle; }),
polygons: this.drawnItems.getLayers().filter(function (e) { return e instanceof L.Polygon; }),
polylines: this.drawnItems.getLayers().filter(function (e) { return e instanceof L.Polyline; }),
}; };
}, },