Set sprite offset according to map data when rendering map