Remove unneeded type cast in examples
This commit is contained in:
@@ -17,12 +17,12 @@ const iconFeature = new Feature({
|
||||
});
|
||||
|
||||
const iconStyle = new Style({
|
||||
image: new Icon(/** @type {module:ol/style/Icon~Options} */ ({
|
||||
image: new Icon({
|
||||
anchor: [0.5, 46],
|
||||
anchorXUnits: 'fraction',
|
||||
anchorYUnits: 'pixels',
|
||||
src: 'data/icon.png'
|
||||
}))
|
||||
})
|
||||
});
|
||||
|
||||
iconFeature.setStyle(iconStyle);
|
||||
|
||||
Reference in New Issue
Block a user