Support minZoom in ol.source.Stamen

This commit is contained in:
Frederic Junod
2016-03-23 12:39:39 +01:00
parent cc9d4d8794
commit 548e4abd35
4 changed files with 11 additions and 4 deletions

View File

@@ -20,6 +20,13 @@ describe('ol.source.XYZ', function() {
expect(tileSource.getTileGrid().getTileSize(0)).to.be(512);
});
it('can be constructed with a custom min zoom', function() {
var tileSource = new ol.source.XYZ({
minZoom: 2
});
expect(tileSource.getTileGrid().getMinZoom()).to.be(2);
});
});
describe('tileUrlFunction', function() {