Support minZoom in ol.source.Stamen

This commit is contained in:
Frederic Junod
2016-04-01 09:46:36 +02:00
parent cc9d4d8794
commit 548e4abd35
4 changed files with 11 additions and 4 deletions
+7
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() {