Merge pull request #3621 from Leaflet/prefer-canvas
Resuscitate L_PREFER_CANVAS
This commit is contained in:
commit
4409b691a6
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user