Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改经纬度,无法显示地图问题,求帮助 #47

Open
mmm2006 opened this issue Sep 10, 2021 · 0 comments
Open

修改经纬度,无法显示地图问题,求帮助 #47

mmm2006 opened this issue Sep 10, 2021 · 0 comments

Comments

@mmm2006
Copy link

mmm2006 commented Sep 10, 2021

我第一使用leaflet,例子是能工作的,我尝试修改,用其他城市的经纬度,但是地图就不能显示出来,不知道是哪里不对,请帮我看下:
下面这个,用例子里面的[31.59, 120.29],就可以出来,用 其他国外的,或者国内的经纬度,就无法显示

例如:[116.38,39.93] [-77.04,38.91]

let map = L.map('mapid', {
center: [-77.04,38.91],
zoom: 12
})

    L.tileLayer.chinaProvider('TianDiTu.Normal.Map', {
      maxZoom: 12,
      minZoom: 5,
      key: '我自己申请的key'
    }).addTo(map);

我用了其他的百度,高德也存在这样的问题。

请帮忙看下,非常感谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant