adds error function to torqueLayer api

This commit is contained in:
Francisco Dans 2015-04-15 10:56:48 +02:00
parent c04ab74a97
commit 3134aa828c

View File

@ -174,6 +174,10 @@ L.CanvasLayer = L.Class.extend({
return this; return this;
}, },
error: function (callback) {
this.provider.options.errorCallback = callback;
},
setOpacity: function (opacity) { setOpacity: function (opacity) {
this.options.opacity = opacity; this.options.opacity = opacity;
this._updateOpacity(); this._updateOpacity();