{
    const yLen = Math.pow(2, yScale);
    const top = 0;
    const buttom = mapSize - yLen;
    y = y < top ? top : y > buttom ? buttom : y;