maptalks / maptalks/raster-collection

天地图的Projection不是EPSG:4326

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
102
Forks
12
PR merge metrics
No merged PRs in 30d

Description

天地图的投影坐标系应该是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。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by locating the Tianditu tile-service configuration and the Leaflet map initialization, then compare its CRS and zoom handling with the CGCS2000 tile levels described here. Done should include correct tile loading without an inappropriate EPSG:4326 offset and account for the changed domain and token requirement.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.