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

在vue项目中使用为什么openstreetmap的偏差还是没有解决 #37

Open
ruanxiaoniu opened this issue Dec 8, 2020 · 2 comments

Comments

@ruanxiaoniu
Copy link

在main.js中引入import "leaflet.chinatmsproviders"
在vue文件中使用:
L.tileLayer.chinaProvider('OSM.Normal.Map', {
maxZoom: 18,
minZoom: 3,
// openstreetmap归因
attribution: '© OpenStreetMap contributors'
})

可是位置还是出现了偏差,请问是哪里有问题吗,在vue中要怎么使用

@jiangteng2019
Copy link

需要检查一下坐标系是否一致。

@htoooth
Copy link
Owner

htoooth commented Feb 1, 2021

@ruanxiaoniu you need to check your coordination in the 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

3 participants