View2D option "numZoomLevels" changed to "maxZoom"
This is to be consistent with ol.source.XYZ and ol.tilegrid.XYZ.
This commit is contained in:
1 parent
aa69b4bae8
commit
778aec45d8
3 files changed
+11
-11
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user