以左下角(180°W, 90°S)为原点开始编号,向东为x轴,向北为y轴。
lon(degree) = x / (2 ** zoom) * 360 – 180
mercatorLat(degree) = y / (2 ** zoom) * 360 – 180
lat(degree) = (2 * Math.atan(Math.exp(mercatorLat * PI / 180)) - Math.PI / 2) * 180 / PI
暂无评论,快来发表第一条评论吧!