From 59142f800c95f464924d42c510189af1b0d90312 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Thu, 20 Feb 2020 15:50:10 +0000 Subject: [PATCH] Draw labels in a postrender function --- test/spec/ol/graticule.test.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/spec/ol/graticule.test.js b/test/spec/ol/graticule.test.js index 3926023a19..269c496578 100644 --- a/test/spec/ol/graticule.test.js +++ b/test/spec/ol/graticule.test.js @@ -43,10 +43,7 @@ describe('ol.layer.Graticule', function() { 25614353.926475704, 7827151.696402049]; const projection = getProjection('EPSG:3857'); const resolution = 39135.75848201024; - const squaredTolerance = resolution * resolution / 4.0; - graticule.updateProjectionInfo_(projection); - graticule.createGraticule_(extent, [0, 0], resolution, squaredTolerance); - graticule.renderedExtent_ = extent; + graticule.loaderFunction(extent, resolution, projection); const event = { context: document.createElement('canvas').getContext('2d'), inversePixelTransform: [1, 0, 0, 1, 0, 0],