"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SimpleAddUI = void 0; var UIElement_1 = require("./UIElement"); var FixedUiElement_1 = require("./Base/FixedUiElement"); var Button_1 = require("./Base/Button"); /** * Asks to add a feature at the last clicked location, at least if zoom is sufficient */ var SimpleAddUI = /** @class */ (function (_super) { __extends(SimpleAddUI, _super); function SimpleAddUI(zoomlevel, lastClickLocation, changes, selectedElement, dataIsLoading, userDetails, addButtons) { var _this = _super.call(this, zoomlevel) || this; _this._zoomlevel = zoomlevel; _this._lastClickLocation = lastClickLocation; _this._changes = changes; _this._selectedElement = selectedElement; _this._dataIsLoading = dataIsLoading; _this._userDetails = userDetails; _this.ListenTo(userDetails); _this.ListenTo(dataIsLoading); _this._addButtons = []; for (var _i = 0, addButtons_1 = addButtons; _i < addButtons_1.length; _i++) { var option = addButtons_1[_i]; //