Fix WMTS TileMatrixSet lookup by SRS identifier

This commit is contained in:
Andreas Hocevar
2015-07-30 19:48:28 +02:00
parent d4d3555a88
commit 95e43c852d
2 changed files with 27 additions and 11 deletions

View File

@@ -76,6 +76,16 @@ describe('ol.source.WMTS', function() {
expect(options.dimensions).to.eql({});
});
it('can find a MatrixSet by SRS identifier', function() {
var options = ol.source.WMTS.optionsFromCapabilities(
capabilities,
{ layer: 'BlueMarbleNextGeneration', projection: 'EPSG:3857',
requestEncoding: 'REST' });
expect(options.matrixSet).to.be.eql('google3857');
});
});
describe('when creating tileUrlFunction', function() {