Make zoomify source enum private
This commit is contained in:
@@ -26,7 +26,7 @@ ol.source.Zoomify = function(opt_options) {
|
|||||||
var size = options.size;
|
var size = options.size;
|
||||||
var tierSizeCalculation = options.tierSizeCalculation !== undefined ?
|
var tierSizeCalculation = options.tierSizeCalculation !== undefined ?
|
||||||
options.tierSizeCalculation :
|
options.tierSizeCalculation :
|
||||||
ol.source.Zoomify.TierSizeCalculation.DEFAULT;
|
ol.source.Zoomify.TierSizeCalculation_.DEFAULT;
|
||||||
|
|
||||||
var imageWidth = size[0];
|
var imageWidth = size[0];
|
||||||
var imageHeight = size[1];
|
var imageHeight = size[1];
|
||||||
@@ -34,7 +34,7 @@ ol.source.Zoomify = function(opt_options) {
|
|||||||
var tileSize = ol.DEFAULT_TILE_SIZE;
|
var tileSize = ol.DEFAULT_TILE_SIZE;
|
||||||
|
|
||||||
switch (tierSizeCalculation) {
|
switch (tierSizeCalculation) {
|
||||||
case ol.source.Zoomify.TierSizeCalculation.DEFAULT:
|
case ol.source.Zoomify.TierSizeCalculation_.DEFAULT:
|
||||||
while (imageWidth > tileSize || imageHeight > tileSize) {
|
while (imageWidth > tileSize || imageHeight > tileSize) {
|
||||||
tierSizeInTiles.push([
|
tierSizeInTiles.push([
|
||||||
Math.ceil(imageWidth / tileSize),
|
Math.ceil(imageWidth / tileSize),
|
||||||
@@ -43,7 +43,7 @@ ol.source.Zoomify = function(opt_options) {
|
|||||||
tileSize += tileSize;
|
tileSize += tileSize;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ol.source.Zoomify.TierSizeCalculation.TRUNCATED:
|
case ol.source.Zoomify.TierSizeCalculation_.TRUNCATED:
|
||||||
var width = imageWidth;
|
var width = imageWidth;
|
||||||
var height = imageHeight;
|
var height = imageHeight;
|
||||||
while (width > tileSize || height > tileSize) {
|
while (width > tileSize || height > tileSize) {
|
||||||
@@ -175,8 +175,9 @@ ol.source.Zoomify.Tile_.prototype.getImage = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @enum {string}
|
* @enum {string}
|
||||||
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.source.Zoomify.TierSizeCalculation = {
|
ol.source.Zoomify.TierSizeCalculation_ = {
|
||||||
DEFAULT: 'default',
|
DEFAULT: 'default',
|
||||||
TRUNCATED: 'truncated'
|
TRUNCATED: 'truncated'
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user