Named export for ol/asserts
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user