cartodb/lib/assets/javascripts/builder/editor/layers/basemap-content-views/basemap-model.js
2020-06-15 10:58:47 +08:00

29 lines
452 B
JavaScript
Executable File

var Backbone = require('backbone');
module.exports = Backbone.Model.extend({
defaults: {
default: false,
minZoom: 0,
maxZoom: 21,
name: '',
category: 'Custom',
type: 'Tiled',
selected: false,
val: '',
label: '',
template: function () {
return '';
}
},
getName: function () {
return this.get('label') || this.getValue();
},
getValue: function () {
return this.get('val');
}
});