From ff0dcbef89cc78bab6f5b63ebca99fa7148357de Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 10 Aug 2022 10:49:28 -0600 Subject: [PATCH] Remove workaround and docs for IE 11 --- examples/icon-color.js | 6 ------ src/ol/style/Icon.js | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/icon-color.js b/examples/icon-color.js index cfbb28d1dc..348d152784 100644 --- a/examples/icon-color.js +++ b/examples/icon-color.js @@ -31,8 +31,6 @@ rome.setStyle( image: new Icon({ color: '#BADA55', crossOrigin: 'anonymous', - // For Internet Explorer 11 - imgSize: [20, 20], src: 'data/square.svg', }), }) @@ -64,8 +62,6 @@ paris.setStyle( image: new Icon({ color: '#8959A8', crossOrigin: 'anonymous', - // For Internet Explorer 11 - imgSize: [20, 20], src: 'data/dot.svg', }), }) @@ -75,8 +71,6 @@ berlin.setStyle( new Style({ image: new Icon({ crossOrigin: 'anonymous', - // For Internet Explorer 11 - imgSize: [20, 20], src: 'data/dot.svg', }), }) diff --git a/src/ol/style/Icon.js b/src/ol/style/Icon.js index 414c8cd4a5..e4cd8fed33 100644 --- a/src/ol/style/Icon.js +++ b/src/ol/style/Icon.js @@ -49,8 +49,8 @@ import {getUid} from '../util.js'; * @property {number} [rotation=0] Rotation in radians (positive rotation clockwise). * @property {import("../size.js").Size} [size] Icon size in pixel. Can be used together with `offset` to define the * sub-rectangle to use from the origin (sprite) icon image. - * @property {import("../size.js").Size} [imgSize] Image size in pixels. Only required if `img` is set and `src` is not, and - * for SVG images in Internet Explorer 11. The provided `imgSize` needs to match the actual size of the image. + * @property {import("../size.js").Size} [imgSize] Image size in pixels. Only required if `img` is set and `src` is not. + * The provided `imgSize` needs to match the actual size of the image. * @property {string} [src] Image source URI. * @property {"declutter"|"obstacle"|"none"|undefined} [declutterMode] Declutter mode */