Open codonge opened 5 years ago
I'm reporting a bug:
old code: _defaultShape: function () { return L.Polyline._flat ? L.Polyline._flat(this._poly._latlngs) ? this._poly._latlngs : this._poly._latlngs[0] : this._poly._latlngs },
new code: _defaultShape: function () { var _latlngs = this._poly._latlngs, defaultShape = null;
function getdefaultShape(t) { return L.LineUtil.isFlat(t) ? t : getdefaultShape(t[0]); } if (L.LineUtil.isFlat) { defaultShape = getdefaultShape(_latlngs); } else { defaultShape = _latlngs; } return defaultShape; }
Could you explain what exactly is the bug?
I'm reporting a bug:
old code: _defaultShape: function () { return L.Polyline._flat ? L.Polyline._flat(this._poly._latlngs) ? this._poly._latlngs : this._poly._latlngs[0] : this._poly._latlngs },
new code: _defaultShape: function () { var _latlngs = this._poly._latlngs, defaultShape = null;