Reputation: 1
changed the handling of removing and redrawing functions after chatgpt solutions
remove: function () {
if (this._polygon) this._polygon.remove();
if (this._circle) this._circle.remove();
if (typeof this._circles !== "undefined") {
if (this._circles.length > 0) {
for (var i in this._circles) {
this._circles[i].remove();
}
}
this._circles = undefined;
}
this._addedToMap = false;
},
Upvotes: 0
Views: 44