htoooth / Leaflet.ChineseTmsProviders

Provider for Chinese Tms Service
https://htoooth.github.io/Leaflet.ChineseTmsProviders/
MIT License
1.02k stars 303 forks source link

Can I directly add points with WGS84 coordinates ? #1

Open seifer08ms opened 9 years ago

seifer08ms commented 9 years ago

Can I directly add points with WGS84 coordinates on the gaode basemap using this plugin ?

htoooth commented 9 years ago

of course, you can.

seifer08ms commented 9 years ago

Do I need to convert WGS84 to GCJ-02?

hanfeisun commented 9 years ago

@seifer08ms I think that is necessary.. but it will be great if the leaflet plugin could do this conversion automatically..

a1c2n3g4w5 commented 9 years ago

楼上估计都是中国人,净搁这儿扯english,不嫌麻烦? 84转火星坐标系不都是拟合的么?这种就别指望自动了

hanfeisun commented 9 years ago

@a1c2n3g4w5 也不是自动的,我的意思是Leaflet.ChineseTmsProviders最好能提供一个函数,或者参数,能把WGS84转成GCJ-02的(即使是拟合的也好,否则还要自己手写一套)

htoooth commented 9 years ago

@hanfeisun 你想怎么用呢?大家可以参考这个 https://github.com/wandergis/coordtransform

htoooth commented 9 years ago

@hanfeisun 如果有必要,我可以将这个功能整合进来

wuqi commented 8 years ago

天地图是wgs84 高德是火星,如果直接用,可以用天地图,就是丑了点

JamesxuWang commented 7 years ago

整进去了么。我很好奇

TechQuery commented 1 year ago

Some guy wrote another plugin to resolve this bug: https://github.com/gisarmory/Leaflet.InternetMapCorrection