Skip to content

天地图的Projection不是EPSG:4326 #4

Description

@jingsam

天地图的投影坐标系应该是cgcs2000,与EPSG:4326的差别在于,cgcs2000是从第1级开始切2张瓦片,EPSG:4326是从第0级切两张瓦片:

zoom cgcs2000 EPSG:4326
0 1 x 2
1 1 x 2 2 x 4
2 2 x 4 4 x 8
... ... ...

当在leaflet中初始化map的时候使用L.CRS.EPSG4326,直接加载天地图的瓦片是无法正确加载的,得设置zoomOffset: 1.

另外,现在天地图的域名发生了变化,而且需要申请token。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions