29 lines
452 B
JavaScript
Executable File
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');
|
|
}
|
|
|
|
});
|