Widgets inside layer options

This commit is contained in:
Raul Ochoa 2015-10-26 16:40:39 +01:00
parent 8b222914c5
commit 3a05d8c2e8
2 changed files with 14 additions and 14 deletions

View File

@ -33,13 +33,13 @@ describe('histograms', function() {
options: { options: {
sql: 'select * from populated_places_simple_reduced', sql: 'select * from populated_places_simple_reduced',
cartocss: '#layer { marker-fill: red; marker-width: 32; marker-allow-overlap: true; }', cartocss: '#layer { marker-fill: red; marker-width: 32; marker-allow-overlap: true; }',
cartocss_version: '2.3.0' cartocss_version: '2.3.0',
}, widgets: {
widgets: { pop_max: {
pop_max: { type: 'histogram',
type: 'histogram', options: {
options: { column: 'pop_max'
column: 'pop_max' }
} }
} }
} }

View File

@ -33,13 +33,13 @@ describe('lists', function() {
options: { options: {
sql: 'select * from test_table', sql: 'select * from test_table',
cartocss: '#layer { marker-fill: red; marker-width: 32; marker-allow-overlap: true; }', cartocss: '#layer { marker-fill: red; marker-width: 32; marker-allow-overlap: true; }',
cartocss_version: '2.3.0' cartocss_version: '2.3.0',
}, widgets: {
widgets: { names: {
names: { type: 'list',
type: 'list', options: {
options: { columns: ['name']
columns: ['name'] }
} }
} }
} }