Minimap issue

I’ve made some minimap for myself, but the problem is that positions of its icons does not match.
So I would like to request some formula for it.