Leaflet 調(diào)用國內(nèi)各種地圖的功能十分復(fù)雜,幸好有 leaflet.ChineseTmsProviders 這個(gè)插件,這四種地圖直接就可以加載進(jìn)來,十分方便。
Current options suitable for tile layers are:
- TianDiTu
- TianDiTu.Normal.Map
- TianDiTu.Normal.Annotion
- TianDiTu.Satellite.Map
- TianDiTu.Satellite.Annotion
- TianDiTu.Terrain.Map
- TianDiTu.Terrain.Annotion
- GaoDe
- GaoDe.Normal.Map (include Annotion)
- GaoDe.Satellite.Map
- GaoDe.Satellite.Annotion
- Google
- Google.Normal.Map (include Annotion)
- Google.Satellite.Map
- Geoq
- Geoq.Normal.Map
- Geoq.Normal.Color
- Geoq.Normal.PurplishBlue
- Geoq.Normal.Gray
- Geoq.Normal.Warm
- Geoq.Normal.Cold
L.tileLayer .chinaProvider("TianDiTu.Satellite.Map", { maxZoom: 18, minZoom: 5 }) .addTo(map);
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)
點(diǎn)擊舉報(bào)。