From 81ab8412394e471141d586b5cf03bfc66311b225 Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Thu, 25 Jul 2019 09:55:59 +0200 Subject: [PATCH] Fix bad offline import --- src/offline/Configuration.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/offline/Configuration.js b/src/offline/Configuration.js index c3fba4565e1e..577dc8679a56 100644 --- a/src/offline/Configuration.js +++ b/src/offline/Configuration.js @@ -7,7 +7,6 @@ import olLayerVector from 'ol/layer/Vector.js'; import olLayerTile from 'ol/layer/Tile.js'; import olLayerImage from 'ol/layer/Image.js'; import * as olProj from 'ol/proj.js'; -import olSourceImage from 'ol/source/Image.js'; import olSourceImageWMS from 'ol/source/ImageWMS.js'; import olSourceTileWMS from 'ol/source/TileWMS.js'; import {createForProjection as createTileGridForProjection} from 'ol/tilegrid.js'; @@ -17,7 +16,7 @@ import LocalforageAndroidWrapper from 'ngeo/offline/LocalforageAndroidWrapper.js import LocalforageIosWrapper from 'ngeo/offline/LocalforageIosWrapper.js'; import ngeoCustomEvent from 'ngeo/CustomEvent.js'; import utils from 'ngeo/offline/utils.js'; -const defaultImageLoadFunction = olSourceImage.defaultImageLoadFunction; +import {defaultImageLoadFunction} from 'ol/source/Image.js'; import * as realLocalforage from 'localforage';