Correct type for Icon options
This commit is contained in:
1 parent
5f8a5b3502
commit
81693cefbf
5 files changed
+7
-7
No files matched your search
@@ -58,7 +58,7 @@ describe('ol.rendering.style.Icon', function() {
|
||||
img.onload = function() {
|
||||
imgInfo.img = img;
|
||||
feature.setStyle(new Style({
|
||||
image: new Icon(/** @type {olx.style.IconOptions} */ (imgInfo))
|
||||
image: new Icon(/** @type {module:ol/style/Icon~Options} */ (imgInfo))
|
||||
}));
|
||||
vectorSource.addFeature(feature);
|
||||
callback();
|
||||
|
||||
Reference in new issue
Block a user