report change:bounds

This commit is contained in:
javi 2013-09-30 13:31:16 +02:00
parent 5d08c83bb0
commit f91fccf3b7

View File

@ -61,6 +61,12 @@ GMapsTorqueLayer.prototype = _.extend({},
this.onTileAdded = this.onTileAdded.bind(this);
this.options.ready = function() {
self.fire("change:bounds", {
bounds: self.provider.getBounds()
});
};
this.provider = new this.providers[this.options.provider](this.options);
this.renderer = new this.renderers[this.options.renderer](this.getCanvas(), this.options);