(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports"], factory);
    }
})(function (require, exports) {
    "use strict";
    /**
     * @fileoverview added by tsickle
     * Generated from: lib/dependencs/AgromaxCamada.ts
     * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
     */
    Object.defineProperty(exports, "__esModule", { value: true });
    /**
     * @template T
     */
    var /**
     * @template T
     */
    AgromaxCamada = /** @class */ (function () {
        function AgromaxCamada(color, featureGroup, name, map) {
            this.color = color;
            this.name = name;
            this.map = map;
            this.isEnable = false;
            this.featureGroup = featureGroup;
        }
        Object.defineProperty(AgromaxCamada.prototype, "featureGroup", {
            get: /**
             * @return {?}
             */
            function () {
                return this._featureGroup;
            },
            set: /**
             * @param {?} v
             * @return {?}
             */
            function (v) {
                if (this._featureGroup) {
                    this.disable();
                }
                this._featureGroup = v;
                this.enable();
            },
            enumerable: true,
            configurable: true
        });
        /**
         * @return {?}
         */
        AgromaxCamada.prototype.disable = /**
         * @return {?}
         */
        function () {
            this._featureGroup.removeFrom(this.map);
            this.isEnable = false;
        };
        /**
         * @return {?}
         */
        AgromaxCamada.prototype.enable = /**
         * @return {?}
         */
        function () {
            this._featureGroup.addTo(this.map);
            this.isEnable = true;
        };
        /**
         * @return {?}
         */
        AgromaxCamada.prototype.zoom = /**
         * @return {?}
         */
        function () {
            this.map.fitBounds(this._featureGroup.getBounds());
        };
        return AgromaxCamada;
    }());
    exports.AgromaxCamada = AgromaxCamada;
    if (false) {
        /**
         * @type {?}
         * @private
         */
        AgromaxCamada.prototype._featureGroup;
        /** @type {?} */
        AgromaxCamada.prototype.isEnable;
        /** @type {?} */
        AgromaxCamada.prototype.color;
        /** @type {?} */
        AgromaxCamada.prototype.name;
        /**
         * @type {?}
         * @private
         */
        AgromaxCamada.prototype.map;
    }
});
//# sourceMappingURL=data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