Named export for VectorImageTile

This commit is contained in:
Frederic Junod
2017-12-22 09:14:22 +01:00
parent 5f4e24e540
commit 53c4113684
4 changed files with 15 additions and 16 deletions

View File

@@ -285,14 +285,14 @@ VectorImageTile.prototype.finishLoading_ = function() {
}
};
export default VectorImageTile;
/**
* Sets the loader for a tile.
* @param {ol.VectorTile} tile Vector tile.
* @param {string} url URL.
*/
VectorImageTile.defaultLoadFunction = function(tile, url) {
export function defaultLoadFunction(tile, url) {
var loader = loadFeaturesXhr(url, tile.getFormat(), tile.onLoad.bind(tile), tile.onError.bind(tile));
tile.setLoader(loader);
};
export default VectorImageTile;
}