Use glyph atlases

This commit is contained in:
GaborFarkas
2017-06-16 12:40:45 +02:00
parent a3a443324d
commit a4c421e699
4 changed files with 400 additions and 135 deletions

View File

@@ -105,14 +105,14 @@ describe('ol.rendering.style.Text', function() {
it('tests the webgl renderer without rotation', function(done) {
map = createMap('webgl');
createFeatures();
expectResemble(map, 'spec/ol/style/expected/text-webgl.png', IMAGE_TOLERANCE, done);
expectResemble(map, 'spec/ol/style/expected/text-webgl.png', 1.8, done);
});
it('tests the webgl renderer with rotation', function(done) {
map = createMap('webgl');
createFeatures();
map.getView().setRotation(Math.PI / 7);
expectResemble(map, 'spec/ol/style/expected/text-rotated-webgl.png', 1.6, done);
expectResemble(map, 'spec/ol/style/expected/text-rotated-webgl.png', 1.8, done);
});
});