Remove type cast in ol/style/AtlasManager

This commit is contained in:
Frederic Junod
2018-12-12 14:45:51 +01:00
parent 701e19c1c9
commit d2cae9d3b7

View File

@@ -152,14 +152,12 @@ class AtlasManager {
* entry, or `null` if the entry is not part of the atlases.
*/
mergeInfos_(info, hitInfo) {
return (
/** @type {AtlasManagerInfo} */ ({
offsetX: info.offsetX,
offsetY: info.offsetY,
image: info.image,
hitImage: hitInfo.image
})
);
return {
offsetX: info.offsetX,
offsetY: info.offsetY,
image: info.image,
hitImage: hitInfo.image
};
}
/**