Remove static member from TileImage
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user