diff --git a/lib/torque/leaflet/canvas_layer.js b/lib/torque/leaflet/canvas_layer.js index ab991e1..8e21dbc 100644 --- a/lib/torque/leaflet/canvas_layer.js +++ b/lib/torque/leaflet/canvas_layer.js @@ -174,6 +174,10 @@ L.CanvasLayer = L.Class.extend({ return this; }, + error: function (callback) { + this.provider.options.errorCallback = callback; + }, + setOpacity: function (opacity) { this.options.opacity = opacity; this._updateOpacity();