From 1eab6079e8cd3f0ef73b5da5d4b9291bce3dc2f1 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 13 Jul 2015 19:05:06 +0200 Subject: [PATCH] Resuscitate L_PREFER_CANVAS --- src/layer/vector/Renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layer/vector/Renderer.js b/src/layer/vector/Renderer.js index 19214e1b..dfb8f624 100644 --- a/src/layer/vector/Renderer.js +++ b/src/layer/vector/Renderer.js @@ -86,7 +86,7 @@ L.Map.include({ var renderer = layer.options.renderer || this._getPaneRenderer(layer.options.pane) || this.options.renderer || this._renderer; if (!renderer) { - renderer = this._renderer = (L.SVG && L.svg()) || (L.Canvas && L.canvas()); + renderer = this._renderer = window.L_PREFER_CANVAS ? L.canvas() : L.svg(); } if (!this.hasLayer(renderer)) {