Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var LeafletCartoDBWebglLayerGroupView = function (layerGroupModel, opts) {
opts = opts || {};
LeafletLayerView.apply(this, arguments);
var metric = Profiler.metric('tangram.rendering');
metric.start();
this.trigger('loading');
this.tangram = new TC(opts.nativeMap, this.initConfig.bind(this, layerGroupModel), opts.showLimitErrors);
this.tangram.onLoaded(function () {
if (metric) {
this.trigger('load');
metric.end();
metric = void 0;
log.info('Rendered Geometries Count: ', this.tangram.getTotalGeometries());
}
}.bind(this));
this.layerGroupModel = layerGroupModel;
};