Remove static member from TileImage

This commit is contained in:
Tim Schaub
2018-02-25 08:10:57 -07:00
parent 9b75dc949f
commit 57d2e7721d

View File

@@ -35,7 +35,7 @@ const TileImage = function(options) {
state: options.state,
tileGrid: options.tileGrid,
tileLoadFunction: options.tileLoadFunction ?
options.tileLoadFunction : TileImage.defaultTileLoadFunction,
options.tileLoadFunction : defaultTileLoadFunction,
tilePixelRatio: options.tilePixelRatio,
tileUrlFunction: options.tileUrlFunction,
url: options.url,
@@ -365,7 +365,8 @@ TileImage.prototype.setTileGridForProjection = function(projection, tilegrid) {
* @param {ol.ImageTile} imageTile Image tile.
* @param {string} src Source.
*/
TileImage.defaultTileLoadFunction = function(imageTile, src) {
function defaultTileLoadFunction(imageTile, src) {
imageTile.getImage().src = src;
};
}
export default TileImage;