adds error function to torqueLayer api
This commit is contained in:
parent
c04ab74a97
commit
3134aa828c
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user