View2D option "numZoomLevels" changed to "maxZoom"

This is to be consistent with ol.source.XYZ and ol.tilegrid.XYZ.
This commit is contained in:
Éric Lemoine
2013-04-14 22:00:09 +02:00
parent aa69b4bae8
commit 778aec45d8
3 changed files with 11 additions and 11 deletions

View File

@@ -16,12 +16,12 @@ describe('ol.View2D', function() {
});
});
describe('with maxResolution, numZoomLevels, and zoomFactor options',
describe('with maxResolution, maxZoom, and zoomFactor options',
function() {
it('gives a correct resolution constraint function', function() {
var options = {
maxResolution: 81,
numZoomLevels: 4,
maxZoom: 3,
zoomFactor: 3
};
var parts = ol.View2D.createResolutionConstraint_(options);