Remove unneeded type cast in examples

This commit is contained in:
Frederic Junod
2018-12-07 09:39:04 +01:00
parent 4ce5379a4b
commit cd3e65e3df
8 changed files with 16 additions and 16 deletions

View File

@@ -11,13 +11,13 @@ import {Icon, Style} from '../src/ol/style.js';
function createStyle(src, img) {
return new Style({
image: new Icon(/** @type {module:ol/style/Icon~Options} */ ({
image: new Icon({
anchor: [0.5, 0.96],
crossOrigin: 'anonymous',
src: src,
img: img,
imgSize: img ? [img.width, img.height] : undefined
}))
})
});
}