parent
1f7b82e74a
commit
4e9d69459c
@ -0,0 +1,156 @@
|
||||
import Layout from "@/layout";
|
||||
export function getFilterRouter() {
|
||||
let list = [];
|
||||
// 正式环境
|
||||
if (
|
||||
process.env.NODE_ENV === "production" &&
|
||||
JSON.parse(process.env.VUE_APP_ISTEST)
|
||||
) {
|
||||
list = [
|
||||
{
|
||||
path: "/index",
|
||||
component: () => import("@/views/index"),
|
||||
name: "Index",
|
||||
meta: { title: "算法运行监测", icon: "", affix: true },
|
||||
},
|
||||
{
|
||||
path: "/warningAppear",
|
||||
component: () => import("@/views/warningManage/warningAppear"),
|
||||
name: "WarningAppear",
|
||||
meta: { title: "预警呈现", icon: "", affix: true },
|
||||
},
|
||||
{
|
||||
path: "/groupEvent",
|
||||
component: () =>
|
||||
import("@/views/warningManage/warningAudit/groupEvent"),
|
||||
name: "GroupEvent",
|
||||
meta: { title: "驾驶舱群体事件", icon: "", affix: true },
|
||||
},
|
||||
{
|
||||
path: "/instancyEvent",
|
||||
component: () =>
|
||||
import("@/views/warningManage/warningAudit/instancyEvent"),
|
||||
name: "InstancyEvent",
|
||||
meta: { title: "驾驶舱紧急事件", icon: "", affix: true },
|
||||
},
|
||||
{
|
||||
path: "/oneToManyEvent",
|
||||
component: () =>
|
||||
import("@/views/warningManage/warningAudit/oneToManyEvent"),
|
||||
name: "OneToManyEvent",
|
||||
meta: { title: "驾驶舱一人多诉事件", icon: "", affix: true },
|
||||
},
|
||||
{
|
||||
path: "/oneToOneEvent",
|
||||
component: () =>
|
||||
import("@/views/warningManage/warningAudit/oneToOneEvent"),
|
||||
name: "OneToOneEvent",
|
||||
meta: { title: "驾驶舱同人同诉事件", icon: "", affix: true },
|
||||
},
|
||||
{
|
||||
path: "/emphasisEvent",
|
||||
component: () =>
|
||||
import("@/views/warningManage/warningAudit/emphasisEvent"),
|
||||
name: "EmphasisEvent",
|
||||
meta: { title: "驾驶舱重点人员事件", icon: "", affix: true },
|
||||
},
|
||||
{
|
||||
path: "/similarity",
|
||||
component: () =>
|
||||
import("@/views/warningManage/warningAudit/similarity"),
|
||||
name: "Similarity",
|
||||
meta: { title: "驾驶舱相似同类事件", icon: "", affix: true },
|
||||
},
|
||||
{
|
||||
path: "/user",
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
redirect: "noredirect",
|
||||
children: [
|
||||
{
|
||||
path: "profile",
|
||||
component: () => import("@/views/system/user/profile/index"),
|
||||
name: "Profile",
|
||||
meta: { title: "个人中心", icon: "user" },
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
return list;
|
||||
}
|
||||
|
||||
list = [
|
||||
{
|
||||
path: "/system/user-auth",
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
permissions: ["system:user:edit"],
|
||||
children: [
|
||||
{
|
||||
path: "role/:userId(\\d+)",
|
||||
component: () => import("@/views/system/user/authRole"),
|
||||
name: "AuthRole",
|
||||
meta: { title: "分配角色", activeMenu: "/system/user" },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/system/role-auth",
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
permissions: ["system:role:edit"],
|
||||
children: [
|
||||
{
|
||||
path: "user/:roleId(\\d+)",
|
||||
component: () => import("@/views/system/role/authUser"),
|
||||
name: "AuthUser",
|
||||
meta: { title: "分配用户", activeMenu: "/system/role" },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/system/dict-data",
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
permissions: ["system:dict:list"],
|
||||
children: [
|
||||
{
|
||||
path: "index/:dictId(\\d+)",
|
||||
component: () => import("@/views/system/dict/data"),
|
||||
name: "Data",
|
||||
meta: { title: "字典数据", activeMenu: "/system/dict" },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/monitor/job-log",
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
permissions: ["monitor:job:list"],
|
||||
children: [
|
||||
{
|
||||
path: "index/:jobId(\\d+)",
|
||||
component: () => import("@/views/monitor/job/log"),
|
||||
name: "JobLog",
|
||||
meta: { title: "调度日志", activeMenu: "/monitor/job" },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/tool/gen-edit",
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
permissions: ["tool:gen:edit"],
|
||||
children: [
|
||||
{
|
||||
path: "index/:tableId(\\d+)",
|
||||
component: () => import("@/views/tool/gen/editTable"),
|
||||
name: "GenEdit",
|
||||
meta: { title: "修改生成配置", activeMenu: "/tool/gen" },
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return list;
|
||||
}
|
@ -1,223 +1,233 @@
|
||||
// this L.CRS.Baidu from https://github.com/muyao1987/leaflet-tileLayer-baidugaode/blob/master/src/tileLayer.baidu.js
|
||||
|
||||
if (L.Proj) {
|
||||
L.CRS.Baidu = new L.Proj.CRS('EPSG:900913', '+proj=merc +a=6378206 +b=6356584.314245179 +lat_ts=0.0 +lon_0=0.0 +x_0=0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs', {
|
||||
resolutions: function () {
|
||||
var level = 19
|
||||
var res = [];
|
||||
res[0] = Math.pow(2, 18);
|
||||
for (var i = 1; i < level; i++) {
|
||||
res[i] = Math.pow(2, (18 - i))
|
||||
}
|
||||
return res;
|
||||
}(),
|
||||
origin: [0, 0],
|
||||
bounds: L.bounds([20037508.342789244, 0], [0, 20037508.342789244])
|
||||
});
|
||||
L.CRS.Baidu = new L.Proj.CRS(
|
||||
"EPSG:900913",
|
||||
"+proj=merc +a=6378206 +b=6356584.314245179 +lat_ts=0.0 +lon_0=0.0 +x_0=0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs",
|
||||
{
|
||||
resolutions: (function () {
|
||||
var level = 19;
|
||||
var res = [];
|
||||
res[0] = Math.pow(2, 18);
|
||||
for (var i = 1; i < level; i++) {
|
||||
res[i] = Math.pow(2, 18 - i);
|
||||
}
|
||||
return res;
|
||||
})(),
|
||||
origin: [0, 0],
|
||||
bounds: L.bounds([20037508.342789244, 0], [0, 20037508.342789244]),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
L.TileLayer.ChinaProvider = L.TileLayer.extend({
|
||||
initialize: function (type, options) {
|
||||
// (type, Object)
|
||||
var providers = L.TileLayer.ChinaProvider.providers;
|
||||
|
||||
initialize: function (type, options) { // (type, Object)
|
||||
var providers = L.TileLayer.ChinaProvider.providers;
|
||||
options = options || {};
|
||||
|
||||
options = options || {}
|
||||
var parts = type.split(".");
|
||||
|
||||
var parts = type.split('.');
|
||||
var providerName = parts[0];
|
||||
var mapName = parts[1];
|
||||
var mapType = parts[2];
|
||||
|
||||
var providerName = parts[0];
|
||||
var mapName = parts[1];
|
||||
var mapType = parts[2];
|
||||
var url = providers[providerName][mapName][mapType];
|
||||
options.subdomains = providers[providerName].Subdomains;
|
||||
options.key = options.key || providers[providerName].key;
|
||||
|
||||
var url = providers[providerName][mapName][mapType];
|
||||
options.subdomains = providers[providerName].Subdomains;
|
||||
options.key = options.key || providers[providerName].key;
|
||||
|
||||
if ('tms' in providers[providerName]) {
|
||||
options.tms = providers[providerName]['tms']
|
||||
}
|
||||
if ("tms" in providers[providerName]) {
|
||||
options.tms = providers[providerName]["tms"];
|
||||
}
|
||||
|
||||
L.TileLayer.prototype.initialize.call(this, url, options);
|
||||
},
|
||||
L.TileLayer.prototype.initialize.call(this, url, options);
|
||||
},
|
||||
|
||||
getTileUrl: function (coords) {
|
||||
var data = {
|
||||
s: this._getSubdomain(coords),
|
||||
x: coords.x,
|
||||
y: coords.y,
|
||||
z: this._getZoomForUrl(),
|
||||
};
|
||||
if (this._map && !this._map.options.crs.infinite) {
|
||||
var invertedY = this._globalTileRange.max.y - coords.y;
|
||||
if (this.options.tms) {
|
||||
data["y"] = invertedY;
|
||||
}
|
||||
data["-y"] = invertedY;
|
||||
}
|
||||
|
||||
getTileUrl: function (coords) {
|
||||
var data = {
|
||||
s: this._getSubdomain(coords),
|
||||
x: coords.x,
|
||||
y: coords.y,
|
||||
z: this._getZoomForUrl(),
|
||||
};
|
||||
if (this._map && !this._map.options.crs.infinite) {
|
||||
var invertedY = this._globalTileRange.max.y - coords.y;
|
||||
if (this.options.tms) {
|
||||
data['y'] = invertedY;
|
||||
}
|
||||
data['-y'] = invertedY;
|
||||
data.sx = data.x >> 4;
|
||||
data.sy = ((1 << data.z) - data.y) >> 4;
|
||||
|
||||
return L.Util.template(this._url, L.Util.extend(data, this.options));
|
||||
},
|
||||
|
||||
createTile: function (coords) {
|
||||
// 创建一个用于绘图的 <canvas> 元素
|
||||
var tile = L.DomUtil.create("canvas", "leaflet-tile");
|
||||
|
||||
// 根据选项设置瓦片的宽度和高度
|
||||
var size = this.getTileSize();
|
||||
tile.width = size.x;
|
||||
tile.height = size.y;
|
||||
|
||||
// 获得一个 canvas 上下文,并使用 coords.x、coords.y 和 coords.z 在上面画东西
|
||||
var ctx = tile.getContext("2d");
|
||||
|
||||
// 使用传入的 URL 模板替换变量
|
||||
var url = this._url
|
||||
.replace("{s}", this._getSubdomain(coords))
|
||||
.replace("{x}", coords.x)
|
||||
.replace("{y}", coords.y)
|
||||
.replace("{z}", this._getZoomForUrl());
|
||||
|
||||
// 创建一个图像对象来加载瓦片
|
||||
var img = new Image();
|
||||
|
||||
img.src = url; // 替换为你的图片路径
|
||||
img.setAttribute("crossOrigin", "anonymous");
|
||||
|
||||
/**获取外部接受的颜色*/
|
||||
var color = this.options.color;
|
||||
|
||||
// 当图片加载完成后,绘制到 Canvas 上
|
||||
img.onload = function () {
|
||||
// 绘制图片到 Canvas 上
|
||||
ctx.drawImage(img, 0, 0, tile.width, tile.height);
|
||||
|
||||
if (color) {
|
||||
// 获取图像的像素数据
|
||||
var imageData = ctx.getImageData(0, 0, tile.width, tile.height);
|
||||
// 获取原来的图片的像素颜色
|
||||
var pixels = imageData.data;
|
||||
for (let i = 0; i < pixels.length; i += 4) {
|
||||
const r = pixels[i],
|
||||
g = pixels[i + 1],
|
||||
b = pixels[i + 2],
|
||||
a = pixels[i + 3];
|
||||
//计算灰度
|
||||
var grayVal = (r + g + b) / 3;
|
||||
//灰度反转--会使图片整体变成灰色--方便上色
|
||||
grayVal = 255 - grayVal;
|
||||
//将灰度替换掉原始的颜色
|
||||
pixels[i] = grayVal + color.r;
|
||||
pixels[i + 1] = grayVal + color.g;
|
||||
pixels[i + 2] = grayVal + color.b;
|
||||
//设置一个前景透明度,以便和背景混合
|
||||
if (color.a) {
|
||||
pixels[i + 3] = a * color.a;
|
||||
}
|
||||
}
|
||||
|
||||
data.sx = data.x >> 4
|
||||
data.sy = ((1 << data.z) - data.y) >> 4
|
||||
|
||||
return L.Util.template(this._url, L.Util.extend(data, this.options));
|
||||
},
|
||||
|
||||
createTile: function (coords) {
|
||||
// 创建一个用于绘图的 <canvas> 元素
|
||||
var tile = L.DomUtil.create('canvas', 'leaflet-tile');
|
||||
|
||||
// 根据选项设置瓦片的宽度和高度
|
||||
var size = this.getTileSize();
|
||||
tile.width = size.x;
|
||||
tile.height = size.y;
|
||||
|
||||
// 获得一个 canvas 上下文,并使用 coords.x、coords.y 和 coords.z 在上面画东西
|
||||
var ctx = tile.getContext('2d');
|
||||
|
||||
// 使用传入的 URL 模板替换变量
|
||||
var url = this._url
|
||||
.replace('{s}', this._getSubdomain(coords))
|
||||
.replace('{x}', coords.x)
|
||||
.replace('{y}', coords.y)
|
||||
.replace('{z}', this._getZoomForUrl());
|
||||
|
||||
|
||||
// 创建一个图像对象来加载瓦片
|
||||
var img = new Image();
|
||||
|
||||
img.src = url; // 替换为你的图片路径
|
||||
img.setAttribute('crossOrigin', 'anonymous')
|
||||
|
||||
/**获取外部接受的颜色*/
|
||||
var color = this.options.color;
|
||||
|
||||
// 当图片加载完成后,绘制到 Canvas 上
|
||||
img.onload = function () {
|
||||
// 绘制图片到 Canvas 上
|
||||
ctx.drawImage(img, 0, 0, tile.width, tile.height);
|
||||
|
||||
if (color) {
|
||||
|
||||
// 获取图像的像素数据
|
||||
var imageData = ctx.getImageData(0, 0, tile.width, tile.height);
|
||||
// 获取原来的图片的像素颜色
|
||||
var pixels = imageData.data;
|
||||
for (let i = 0; i < pixels.length; i += 4) {
|
||||
const r = pixels[i],
|
||||
g = pixels[i + 1],
|
||||
b = pixels[i + 2],
|
||||
a = pixels[i + 3];
|
||||
//计算灰度
|
||||
var grayVal = (r + g + b) / 3;
|
||||
//灰度反转--会使图片整体变成灰色--方便上色
|
||||
grayVal = 255 - grayVal;
|
||||
//将灰度替换掉原始的颜色
|
||||
pixels[i] = grayVal + color.r;
|
||||
pixels[i + 1] = grayVal + color.g;
|
||||
pixels[i + 2] = grayVal + color.b;
|
||||
//设置一个前景透明度,以便和背景混合
|
||||
if (color.a) {
|
||||
pixels[i + 3] = a * color.a;
|
||||
}
|
||||
}
|
||||
// 将修改后的像素数据放回 Canvas
|
||||
ctx.putImageData(imageData, 0, 0);
|
||||
}
|
||||
};
|
||||
// 返回瓦片,以便在屏幕上呈现
|
||||
return tile;
|
||||
}
|
||||
// 将修改后的像素数据放回 Canvas
|
||||
ctx.putImageData(imageData, 0, 0);
|
||||
}
|
||||
};
|
||||
// 返回瓦片,以便在屏幕上呈现
|
||||
return tile;
|
||||
},
|
||||
});
|
||||
|
||||
L.TileLayer.ChinaProvider.providers = {
|
||||
TianDiTu: {
|
||||
Normal: {
|
||||
Map: "//t{s}.tianditu.gov.cn/DataServer?T=vec_w&X={x}&Y={y}&L={z}&tk={key}",
|
||||
Annotion: "//t{s}.tianditu.gov.cn/DataServer?T=cva_w&X={x}&Y={y}&L={z}&tk={key}"
|
||||
},
|
||||
Satellite: {
|
||||
Map: "//t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk={key}",
|
||||
Annotion: "//t{s}.tianditu.gov.cn/DataServer?T=cia_w&X={x}&Y={y}&L={z}&tk={key}"
|
||||
},
|
||||
Terrain: {
|
||||
Map: "//t{s}.tianditu.gov.cn/DataServer?T=ter_w&X={x}&Y={y}&L={z}&tk={key}",
|
||||
Annotion: "//t{s}.tianditu.gov.cn/DataServer?T=cta_w&X={x}&Y={y}&L={z}&tk={key}"
|
||||
},
|
||||
Subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
|
||||
key: "174705aebfe31b79b3587279e211cb9a"
|
||||
TianDiTu: {
|
||||
Normal: {
|
||||
Map: "//t{s}.tianditu.gov.cn/DataServer?T=vec_w&X={x}&Y={y}&L={z}&tk={key}",
|
||||
Annotion:
|
||||
"//t{s}.tianditu.gov.cn/DataServer?T=cva_w&X={x}&Y={y}&L={z}&tk={key}",
|
||||
},
|
||||
|
||||
GaoDe: {
|
||||
Normal: {
|
||||
// Map: 'https://webst0{s}.is.autonavi.com/appmaptile?style=7&x={x}&y={y}&z={z}' //高清
|
||||
// Map: '//webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}'
|
||||
// http://202.102.20.34:9001
|
||||
Map: location.origin + '/map/{z}/{x}/{y}.png'
|
||||
},
|
||||
Satellite: {
|
||||
Map: 'https://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',
|
||||
Annotion: 'https://webst0{s}.is.autonavi.com/appmaptile?style=8&x={x}&y={y}&z={z}'
|
||||
},
|
||||
Subdomains: ["1", "2", "3", "4"]
|
||||
Satellite: {
|
||||
Map: "//t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk={key}",
|
||||
Annotion:
|
||||
"//t{s}.tianditu.gov.cn/DataServer?T=cia_w&X={x}&Y={y}&L={z}&tk={key}",
|
||||
},
|
||||
|
||||
Google: {
|
||||
Normal: {
|
||||
Map: "//www.google.cn/maps/vt?lyrs=m@189&gl=cn&x={x}&y={y}&z={z}"
|
||||
},
|
||||
Satellite: {
|
||||
Map: "//www.google.cn/maps/vt?lyrs=s@189&gl=cn&x={x}&y={y}&z={z}",
|
||||
Annotion: "//www.google.cn/maps/vt?lyrs=y@189&gl=cn&x={x}&y={y}&z={z}"
|
||||
},
|
||||
Subdomains: []
|
||||
Terrain: {
|
||||
Map: "//t{s}.tianditu.gov.cn/DataServer?T=ter_w&X={x}&Y={y}&L={z}&tk={key}",
|
||||
Annotion:
|
||||
"//t{s}.tianditu.gov.cn/DataServer?T=cta_w&X={x}&Y={y}&L={z}&tk={key}",
|
||||
},
|
||||
|
||||
Geoq: {
|
||||
Normal: {
|
||||
Map: "//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}",
|
||||
PurplishBlue: "//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}",
|
||||
Gray: "//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetGray/MapServer/tile/{z}/{y}/{x}",
|
||||
Warm: "//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetWarm/MapServer/tile/{z}/{y}/{x}",
|
||||
},
|
||||
Theme: {
|
||||
Hydro: "//thematic.geoq.cn/arcgis/rest/services/ThematicMaps/WorldHydroMap/MapServer/tile/{z}/{y}/{x}"
|
||||
},
|
||||
Subdomains: []
|
||||
Subdomains: ["0", "1", "2", "3", "4", "5", "6", "7"],
|
||||
key: "174705aebfe31b79b3587279e211cb9a",
|
||||
},
|
||||
|
||||
GaoDe: {
|
||||
Normal: {
|
||||
// Map: 'https://webst0{s}.is.autonavi.com/appmaptile?style=7&x={x}&y={y}&z={z}' //高清
|
||||
// Map: '//webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}'
|
||||
// http://202.102.20.34:9001
|
||||
Map: JSON.parse(process.env.VUE_APP_ISTEST)
|
||||
? location.origin + "/map/{z}/{x}/{y}.png"
|
||||
: "https://webst0{s}.is.autonavi.com/appmaptile?style=7&x={x}&y={y}&z={z}",
|
||||
},
|
||||
Satellite: {
|
||||
Map: "https://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",
|
||||
Annotion:
|
||||
"https://webst0{s}.is.autonavi.com/appmaptile?style=8&x={x}&y={y}&z={z}",
|
||||
},
|
||||
Subdomains: ["1", "2", "3", "4"],
|
||||
},
|
||||
|
||||
OSM: {
|
||||
Normal: {
|
||||
Map: "//{s}.tile.osm.org/{z}/{x}/{y}.png",
|
||||
},
|
||||
Subdomains: ['a', 'b', 'c']
|
||||
Google: {
|
||||
Normal: {
|
||||
Map: "//www.google.cn/maps/vt?lyrs=m@189&gl=cn&x={x}&y={y}&z={z}",
|
||||
},
|
||||
Satellite: {
|
||||
Map: "//www.google.cn/maps/vt?lyrs=s@189&gl=cn&x={x}&y={y}&z={z}",
|
||||
Annotion: "//www.google.cn/maps/vt?lyrs=y@189&gl=cn&x={x}&y={y}&z={z}",
|
||||
},
|
||||
Subdomains: [],
|
||||
},
|
||||
|
||||
Geoq: {
|
||||
Normal: {
|
||||
Map: "//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}",
|
||||
PurplishBlue:
|
||||
"//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}",
|
||||
Gray: "//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetGray/MapServer/tile/{z}/{y}/{x}",
|
||||
Warm: "//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetWarm/MapServer/tile/{z}/{y}/{x}",
|
||||
},
|
||||
Theme: {
|
||||
Hydro:
|
||||
"//thematic.geoq.cn/arcgis/rest/services/ThematicMaps/WorldHydroMap/MapServer/tile/{z}/{y}/{x}",
|
||||
},
|
||||
Subdomains: [],
|
||||
},
|
||||
|
||||
Baidu: {
|
||||
Normal: {
|
||||
Map: '//online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1'
|
||||
},
|
||||
Satellite: {
|
||||
Map: '//shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46',
|
||||
Annotion: '//online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl&v=020'
|
||||
},
|
||||
Subdomains: '0123456789',
|
||||
tms: true
|
||||
OSM: {
|
||||
Normal: {
|
||||
Map: "//{s}.tile.osm.org/{z}/{x}/{y}.png",
|
||||
},
|
||||
Subdomains: ["a", "b", "c"],
|
||||
},
|
||||
|
||||
Tencent: {
|
||||
Normal: {
|
||||
Map: "//rt{s}.map.gtimg.com/tile?z={z}&x={x}&y={-y}&type=vector&styleid=3",
|
||||
},
|
||||
Satellite: {
|
||||
Map: "//p{s}.map.gtimg.com/sateTiles/{z}/{sx}/{sy}/{x}_{-y}.jpg",
|
||||
},
|
||||
Terrain: {
|
||||
Map: "//p{s}.map.gtimg.com/demTiles/{z}/{sx}/{sy}/{x}_{-y}.jpg"
|
||||
},
|
||||
Subdomains: '0123',
|
||||
}
|
||||
Baidu: {
|
||||
Normal: {
|
||||
Map: "//online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1",
|
||||
},
|
||||
Satellite: {
|
||||
Map: "//shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46",
|
||||
Annotion:
|
||||
"//online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl&v=020",
|
||||
},
|
||||
Subdomains: "0123456789",
|
||||
tms: true,
|
||||
},
|
||||
|
||||
Tencent: {
|
||||
Normal: {
|
||||
Map: "//rt{s}.map.gtimg.com/tile?z={z}&x={x}&y={-y}&type=vector&styleid=3",
|
||||
},
|
||||
Satellite: {
|
||||
Map: "//p{s}.map.gtimg.com/sateTiles/{z}/{sx}/{sy}/{x}_{-y}.jpg",
|
||||
},
|
||||
Terrain: {
|
||||
Map: "//p{s}.map.gtimg.com/demTiles/{z}/{sx}/{sy}/{x}_{-y}.jpg",
|
||||
},
|
||||
Subdomains: "0123",
|
||||
},
|
||||
};
|
||||
|
||||
L.tileLayer.chinaProvider = function (type, options) {
|
||||
return new L.TileLayer.ChinaProvider(type, options);
|
||||
return new L.TileLayer.ChinaProvider(type, options);
|
||||
};
|
||||
|
Loading…
Reference in new issue