cartodb-4.42/lib/assets/javascripts/builder/helpers/styles-without-autostyle.js
2024-04-06 05:25:13 +00:00

17 lines
416 B
JavaScript

module.exports = function () {
var stylesWithoutAutostyles;
return function (layerDefModel) {
var isAutoStyleActive = !!layerDefModel.get('autoStyle');
if (!isAutoStyleActive) {
stylesWithoutAutostyles = {
previousCartoCSS: layerDefModel.get('cartocss'),
previousCartoCSSCustom: layerDefModel.attributes.cartocss_custom
};
}
return stylesWithoutAutostyles;
};
};