htoooth / Leaflet.ChineseTmsProviders

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

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

Open ruanxiaoniu opened 3 years ago

ruanxiaoniu commented 3 years ago

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

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

jiangteng2019 commented 3 years ago

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

htoooth commented 3 years ago

@ruanxiaoniu you need to check your coordination in the map