Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/util/imagesLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { asArray as ol_color_asArray } from 'ol/color'

/** @namespace ol.ext.imageLoader
*/
if (window.ol) window.ol.ext.imageLoader = {};
if (window.ol && ol.ext && !ol.ext.imageLoader) {
ol.ext.imageLoader = {};
}

/** Helper for loading BIL-32 (Band Interleaved by Line) image
* @param {string} src
Expand Down
2 changes: 1 addition & 1 deletion src/util/input/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ol_Object from 'ol/Object'
/** @namespace ol.ext.input
*/
/*global ol*/
if (window.ol) {
if (window.ol && ol.ext && !ol.ext.input) {
ol.ext.input = {};
}

Expand Down