diff --git a/src/ol/source/common.js b/src/ol/source/common.js index 4176e1a1a2..eab85a456b 100644 --- a/src/ol/source/common.js +++ b/src/ol/source/common.js @@ -1,6 +1,7 @@ /** * @module ol/source/common */ +import {FIREFOX, SAFARI, WEBKIT} from '../has.js'; /** * Default WMS version. @@ -12,7 +13,9 @@ export const DEFAULT_WMS_VERSION = '1.3.0'; * Context options to disable image smoothing. * @type {Object} */ -export const IMAGE_SMOOTHING_DISABLED = { - imageSmoothingEnabled: false, - msImageSmoothingEnabled: false, -}; +export const IMAGE_SMOOTHING_DISABLED = FIREFOX || SAFARI || WEBKIT + ? {imageSmoothingEnabled: false} + : { + imageSmoothingEnabled: false, + msImageSmoothingEnabled: false, + };