Correctly calculate offset into stored map data