1.containerPoint:相对于地图container容器的像素坐标,即地图容器左上角为(0,0),不随拖拽,缩放改变。
2.LayerPoint:相对于origin pixel的相应像素坐标,地图第一次加载的地图容器左上角为(0,0)向四周扩展,是直接将地图地理坐标对应为像素坐标。地图容器左上角坐标随拖拽改变。canvas是根据layerpoint坐标定位的。
3.latLng:经纬度坐标
4.setPosition(<HTMLElement> el, <
将 Point
> position)el
的位置设置为由 position
指定的坐标,根据浏览器使用CSS translate 或 top/left 定位(Leaflet 内部用来定位其图层)。position是layerPoint坐标,可以对canvas进行定位