cartodb/lib/assets/javascripts/builder/helpers/styles-without-autostyle.js
2020-06-15 10:58:47 +08: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;
};
};