Named export for ol/asserts

This commit is contained in:
Frederic Junod
2017-12-17 18:10:59 +01:00
parent 7202573f82
commit 9349ba5403
33 changed files with 89 additions and 92 deletions

View File

@@ -1,7 +1,7 @@
/**
* @module ol/tileurlfunction
*/
import _ol_asserts_ from './asserts.js';
import {assert} from './asserts.js';
import _ol_math_ from './math.js';
import _ol_tilecoord_ from './tilecoord.js';
@@ -36,7 +36,7 @@ export function createFromTemplate(template, tileGrid) {
.replace(dashYRegEx, function() {
var z = tileCoord[0];
var range = tileGrid.getFullTileRange(z);
_ol_asserts_.assert(range, 55); // The {-y} placeholder requires a tile grid with extent
assert(range, 55); // The {-y} placeholder requires a tile grid with extent
var y = range.getHeight() + tileCoord[2];
return y.toString();
});