Merge pull request #3621 from Leaflet/prefer-canvas

Resuscitate L_PREFER_CANVAS
This commit is contained in:
Iván Sánchez Ortega 2015-07-13 19:45:30 +02:00
commit 4409b691a6

View File

@ -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)) {