Fix an error when creating a nogo circle
This commit is contained in:
parent
6e60751db0
commit
ab06b8a8d1
1 changed files with 3 additions and 1 deletions
|
|
@ -114,7 +114,9 @@ BR.NogoAreas = L.Control.extend({
|
|||
|
||||
getOptions: function() {
|
||||
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; }),
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue