Unused intermediate canvas renderer

This commit is contained in:
Tim Schaub
2018-11-15 17:17:07 +01:00
parent 666f57bd4c
commit 7a82904a3b
2 changed files with 4 additions and 181 deletions

View File

@@ -18,7 +18,7 @@ import PinchZoom from '../../../src/ol/interaction/PinchZoom.js';
import ImageLayer from '../../../src/ol/layer/Image.js';
import TileLayer from '../../../src/ol/layer/Tile.js';
import VectorLayer from '../../../src/ol/layer/Vector.js';
import IntermediateCanvasRenderer from '../../../src/ol/renderer/canvas/IntermediateCanvas.js';
import TileLayerRenderer from '../../../src/ol/renderer/canvas/TileLayer.js';
import ImageStatic from '../../../src/ol/source/ImageStatic.js';
import VectorSource from '../../../src/ol/source/Vector.js';
import XYZ from '../../../src/ol/source/XYZ.js';
@@ -325,8 +325,8 @@ describe('ol.Map', function() {
beforeEach(function(done) {
log = [];
original = IntermediateCanvasRenderer.prototype.forEachLayerAtCoordinate;
IntermediateCanvasRenderer.prototype.forEachLayerAtCoordinate = function(coordinate) {
original = TileLayerRenderer.prototype.forEachLayerAtCoordinate;
TileLayerRenderer.prototype.forEachLayerAtCoordinate = function(coordinate) {
log.push(coordinate.slice());
};
@@ -364,7 +364,7 @@ describe('ol.Map', function() {
});
afterEach(function() {
IntermediateCanvasRenderer.prototype.forEachLayerAtCoordinate = original;
TileLayerRenderer.prototype.forEachLayerAtCoordinate = original;
map.dispose();
document.body.removeChild(target);
log = null;