Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus89 committed Dec 18, 2019
1 parent 71f04ff commit 3192d7a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const map = new CartoMap({
container: 'map',
background: 'black'
});

const source = new carto.source.GeoJSON(sources['points3']);
const viz = new carto.Viz(`
color: ramp(top(@prop, @num), CB_BLUES)
width: 50
@prop: $cat
@num: 2
`);
const layer = new carto.Layer('layer', source, viz);

viz.variables.num.blendTo(2, 0);
layer.addTo(map);
layer.on('loaded', () => {
window.loaded = true;
});

0 comments on commit 3192d7a

Please sign in to comment.