import { __assign } from "tslib";
import { isUndefined } from '@antv/util';
/**
 * 获取标注图层配置项
 */
export 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) && (isUndefined(label === null || label === void 0 ? void 0 : label.visible) || (label === null || label === void 0 ? void 0 : label.visible));
    var labelLayerOptions = __assign(__assign({ zIndex: zIndex + 0.1, minZoom: minZoom, maxZoom: maxZoom }, label), { visible: labelVisible });
    return labelLayerOptions;
};
//# sourceMappingURL=label-layer.js.map