"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLabelLayerOptions = void 0;
var tslib_1 = require("tslib");
var util_1 = require("@antv/util");
/**
 * 获取标注图层配置项
 */
var getLabelLayerOptions = function (options) {
    var visible = options.visible, minZoom = options.minZoom, maxZoom = options.maxZoom, _a = options.zIndex, zIndex = _a === void 0 ? 0 : _a, label = options.label;
    var labelVisible = visible && Boolean(label) && ((0, util_1.isUndefined)(label === null || label === void 0 ? void 0 : label.visible) || (label === null || label === void 0 ? void 0 : label.visible));
    var labelLayerOptions = tslib_1.__assign(tslib_1.__assign({ zIndex: zIndex + 0.1, minZoom: minZoom, maxZoom: maxZoom }, label), { visible: labelVisible });
    return labelLayerOptions;
};
exports.getLabelLayerOptions = getLabelLayerOptions;
//# sourceMappingURL=label-layer.js.map