Named exports from tilecoord

This commit is contained in:
Marc Jansen
2018-02-08 16:58:34 +01:00
parent a01b38bc36
commit 685b46f1e3
20 changed files with 97 additions and 116 deletions

View File

@@ -3,7 +3,7 @@
*/
import {assert} from './asserts.js';
import {modulo} from './math.js';
import _ol_tilecoord_ from './tilecoord.js';
import {hash as tileCoordHash} from './tilecoord.js';
/**
@@ -80,7 +80,7 @@ export function createFromTileUrlFunctions(tileUrlFunctions) {
if (!tileCoord) {
return undefined;
} else {
const h = _ol_tilecoord_.hash(tileCoord);
const h = tileCoordHash(tileCoord);
const index = modulo(h, tileUrlFunctions.length);
return tileUrlFunctions[index](tileCoord, pixelRatio, projection);
}