Remove static member from TileImage

This commit is contained in:
Tim Schaub
2018-02-25 08:10:57 -07:00
parent 9b75dc949f
commit 57d2e7721d
+4 -3
View File
@@ -35,7 +35,7 @@ const TileImage = function(options) {
state: options.state, state: options.state,
tileGrid: options.tileGrid, tileGrid: options.tileGrid,
tileLoadFunction: options.tileLoadFunction ? tileLoadFunction: options.tileLoadFunction ?
options.tileLoadFunction : TileImage.defaultTileLoadFunction, options.tileLoadFunction : defaultTileLoadFunction,
tilePixelRatio: options.tilePixelRatio, tilePixelRatio: options.tilePixelRatio,
tileUrlFunction: options.tileUrlFunction, tileUrlFunction: options.tileUrlFunction,
url: options.url, url: options.url,
@@ -365,7 +365,8 @@ TileImage.prototype.setTileGridForProjection = function(projection, tilegrid) {
* @param {ol.ImageTile} imageTile Image tile. * @param {ol.ImageTile} imageTile Image tile.
* @param {string} src Source. * @param {string} src Source.
*/ */
TileImage.defaultTileLoadFunction = function(imageTile, src) { function defaultTileLoadFunction(imageTile, src) {
imageTile.getImage().src = src; imageTile.getImage().src = src;
}; }
export default TileImage; export default TileImage;