report change:bounds
This commit is contained in:
parent
5d08c83bb0
commit
f91fccf3b7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user