cartodb-4.42/lib/assets/javascripts/builder/data/legends/legend-torque-definition-model.js
2024-04-06 05:25:13 +00:00

21 lines
480 B
JavaScript

var _ = require('underscore');
var LegendBaseDefModel = require('./legend-custom-definition-model');
module.exports = LegendBaseDefModel.extend({
defaults: function () {
return _.extend({}, LegendBaseDefModel.prototype.defaults,
{
type: 'torque',
items: [],
html: ''
}
);
},
parse: function (r, opts) {
var attrs = LegendBaseDefModel.prototype.parse.call(this, r, opts);
attrs.type = 'torque';
return attrs;
}
});