Test setDisplacement

This commit is contained in:
mike-000
2021-10-25 10:28:54 +01:00
committed by GitHub
parent eb0bfc970e
commit f16482b420

View File

@@ -198,6 +198,11 @@ describe('ol.style.Icon', function () {
size[0] / 2 - 20,
size[1] / 2 + 10,
]);
iconStyle.setDisplacement([10, 20]);
expect(iconStyle.getAnchor()).to.eql([
size[0] / 2 - 10,
size[1] / 2 + 20,
]);
});
});