首页 > 解决方案 > Leaflet LatLng 坐标到 xy 地图

问题描述

传单如何从缩放 z、纬度和经度坐标计算瓷砖的 xy 坐标?请问公式是什么?

谢谢

标签: leafletcoordinates

解决方案


您可以使用map.latlngtoContainerPoint(latlng),但是当您需要公式时,您可以查看src

Leafet/Map.js#L1071 --> Leafet/Map.js#L1014


推荐阅读