我们使用地图框架leaflet.js 的时候,在移动端会发现地图显示的文字这些有点模糊。只要把detectRetina这个属性设置为true 就可以完美的解决了。(加上不影响PC端)
L.tileLayer("http://webrd01.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&size=1&scale=1&style=7", { detectRetina:true }).addTo(this.map)
L.tileLayer.chinaProvider("GaoDe.Normal.Map", {
maxZoom: 18,
minZoom: 5,
detectRetina:true
}).addTo(this.map)