cartodb-4.42/lib/assets/javascripts/builder/helpers/styles-without-autostyle.js

17 lines
416 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
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;
};
};