Get tilePixelRatio from MVT tiles

This commit is contained in:
Andreas Hocevar
2017-08-02 17:45:55 +02:00
parent 007d8c2d5e
commit b3be7e7ba9
11 changed files with 113 additions and 25 deletions

View File

@@ -88,6 +88,13 @@ where('ArrayBuffer.isView').describe('ol.format.MVT', function() {
expect(features[0].getId()).to.be(2);
});
it('sets the extent of the last readFeatures call', function() {
var format = new ol.format.MVT();
format.readFeatures(data);
var extent = format.getLastExtent();
expect(extent.getWidth()).to.be(4096);
});
});
});