Leaflet 調用國內各種地圖的功能十分復雜,幸好有 leaflet.ChineseTmsProviders 這個(gè)插件,這四種地圖直接就可以加載進(jìn)來(lái),十分方便。
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);
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請
點(diǎn)擊舉報。