sets local cartocss on startup

This commit is contained in:
Francisco Dans 2016-07-05 20:52:19 +02:00
parent 3f4279a355
commit 4cd282a6d4

View File

@ -73,6 +73,7 @@ var CartoDatasource = require('./datasource');
this._iconsToLoad = 0;
this._filters = new Filters(this._canvas, {canvasClass: options.canvasClass});
this.style = this.options.cartocss || DEFAULT_CARTOCSS;
this.setCartoCSS(this.style);
this.TILE_SIZE = 256;
this._style = null;
this._gradients = {};