Make zDirection configurable on tile source

This commit is contained in:
ahocevar
2019-07-30 16:50:01 +02:00
parent 230205c3fd
commit e07ff9c04e
17 changed files with 65 additions and 26 deletions

View File

@@ -20,6 +20,13 @@ describe('ol.source.XYZ', function() {
expect(source).to.be.an(TileSource);
});
it('can be constructed with a custom zDirection', function() {
const source = new XYZ({
zDirection: -1
});
expect(source.zDirection).to.be(-1);
});
it('can be constructed with a custom tile grid', function() {
const tileGrid = createXYZ();
const tileSource = new XYZ({