Move quadKey function to the one place it is used

This commit is contained in:
Tim Schaub
2018-11-20 13:31:54 -07:00
parent 60b3370bba
commit 37c987de0a
4 changed files with 36 additions and 37 deletions

View File

@@ -1,5 +1,4 @@
import {
quadKey,
getKey,
fromKey,
hash,
@@ -19,14 +18,6 @@ describe('ol.TileCoord', function() {
});
});
describe('call quadKey', function() {
it('returns expected string', function() {
const tileCoord = [3, 3, 5];
const s = quadKey(tileCoord);
expect(s).to.eql('213');
});
});
describe('getKey()', function() {
it('returns a key for a tile coord', function() {
const key = getKey([1, 2, 3]);