rc-leaflet
Version:
React Map Components of Leaflet
21 lines (20 loc) • 943 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var leaflet_1 = __importDefault(require("leaflet"));
exports.default = {
BMap: leaflet_1.default.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: leaflet_1.default.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: leaflet_1.default.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'),
GoogleMap: leaflet_1.default.tileLayer('http://mt{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}', {
maxZoom: 20,
subdomains: ['0', '1', '2', '3']
})
};