From 3134aa828ca4cf7898ab805731e1de1f3702d609 Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Wed, 15 Apr 2015 10:56:48 +0200 Subject: [PATCH] adds error function to torqueLayer api --- lib/torque/leaflet/canvas_layer.js | 4 ++++ 1 file changed, 4 insertions(+) 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();