rc-leaflet
Version:
React Map Components of Leaflet
16 lines (15 loc) • 632 B
JavaScript
import L from 'leaflet';
export default {
BMap: L.tileLayer('http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=pl&udt=20150518', {
tms: true,
subdomains: ['0', '1', '2']
}),
AMap: L.tileLayer('http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', {
subdomains: ['1', '2', '3', '4']
}),
OpenStreetMap: L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'),
GoogleMap: L.tileLayer('http://mt{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}', {
maxZoom: 20,
subdomains: ['0', '1', '2', '3']
})
};