Draw labels in a postrender function

This commit is contained in:
mike-000
2020-02-20 15:50:10 +00:00
committed by GitHub
parent bc2c49165e
commit 59142f800c

View File

@@ -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],