cartodb/lib/assets/javascripts/builder/data/legends/legend-torque-definition-model.js
2020-06-15 10:58:47 +08: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;
}
});