Leaflet的扩展,包含各种国内互联网地图的配置。
例子
var map = L.map('map', {
center: [31.59, 120.29],
zoom: 12
});
L.tileLayer.chinaProvider('TianDiTu.Normal.Map',{maxZoom:18,minZoom:5}).addTo(map);
L.tileLayer.chinaProvider('TianDiTu.Normal.Annotion',{maxZoom:18,minZoom:5}).addTo(map);
支持的地图
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 (exclude Annotion)
Google.Satellite.Map (include Annotion)
Geoq
Geoq.Normal.Map
Geoq.Normal.PurplishBlue
Geoq.Normal.Gray
Geoq.Normal.Warm
Geoq.Normal.Hydro
OSM
OSM.Normal.Map
Baidu
Baidu.Normal.Map
Baidu.Satellite.Map (exclude Annotion)
Baidu.Satellite.Annotion