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

@@ -22,27 +22,27 @@ const madrid = new Feature({
});
rome.setStyle(new Style({
image: new Icon(/** @type {module:ol/style/Icon~Options} */ ({
image: new Icon({
color: '#8959A8',
crossOrigin: 'anonymous',
src: 'data/dot.png'
}))
})
}));
london.setStyle(new Style({
image: new Icon(/** @type {module:ol/style/Icon~Options} */ ({
image: new Icon({
color: '#4271AE',
crossOrigin: 'anonymous',
src: 'data/dot.png'
}))
})
}));
madrid.setStyle(new Style({
image: new Icon(/** @type {module:ol/style/Icon~Options} */ ({
image: new Icon({
color: [113, 140, 0],
crossOrigin: 'anonymous',
src: 'data/dot.png'
}))
})
}));