set sql_api as default provider

This commit is contained in:
javi 2013-09-02 15:15:57 +02:00
parent 13c7c81e52
commit 37785c59d6
2 changed files with 2 additions and 0 deletions

View File

@ -196,6 +196,7 @@ GMapsTiledTorqueLayer.prototype = _.extend({}, CanvasTileLayer.prototype, {
this.key = 0;
this.options.renderer = this.options.renderer || 'pixel';
this.options.provider = this.options.provider || 'sql_api';
this.provider = new this.providers[this.options.provider](options);
this.renderer = new this.renderers[this.options.renderer](null, options);

View File

@ -155,6 +155,7 @@ L.TiledTorqueLayer = L.TileLayer.Canvas.extend({
this.options.renderer = this.options.renderer || 'pixel';
this.options.provider = this.options.provider || 'sql_api';
this.provider = new this.providers[this.options.provider](options);
this.renderer = new this.renderers[this.options.renderer](null, options);