fix:修改地图

This commit is contained in:
SunTao 2024-12-10 10:18:41 +08:00
parent e60fac3dd1
commit ba9b03f2ef
2 changed files with 15 additions and 15 deletions

View File

@ -263,22 +263,22 @@ export default {
* @return {*}
*/
initMap() {
// const tianditu_vec_c = new TileLayer({
// className: "baseLayerClass",
// title: "",
// id: "vec_c",
// source: new XYZ({
// url: "http://t{0-7}.tianditu.com/DataServer?x={x}&y={y}&l={z}&T=vec_c&tk=1eb44fae5b9dc454442b322e9a41d233",
// projection: "EPSG:4326",
// }),
// visible: true,
// });
const tianditu_vec_c = new TileLayer({
className: "baseLayerClass",
title: "矢量底图",
id: "vec_c",
source: new XYZ({
url: "http://10.60.5.242:25033/v3/tile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",
// projection: "EPSG:4326",
}),
visible: true,
});
const tianditu_cva_c = new TileLayer({
className: "baseLayerClass",
title: "矢量地图",
id: "cva_c",
source: new XYZ({
url: "https://webrd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",
url: "http://10.60.5.242:25003/v3/tile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",
// projection: "EPSG:4326",
}),
visible: true,
@ -306,7 +306,7 @@ export default {
minZoom: 7,
maxZoom: 18,
}),
layers: [tianditu_img_c, tianditu_cva_c],
layers: [tianditu_cva_c, tianditu_vec_c, tianditu_img_c],
});
//
map.on("singleclick", (e) => {

View File

@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-10-17 11:34:00
* @LastEditors: SunTao 328867980@qq.com
* @LastEditTime: 2024-12-09 10:52:43
* @LastEditTime: 2024-12-10 10:17:16
* @FilePath: \znxjxt-ui\src\views\big-screen\index.vue
* @Description: 大屏首页
-->
@ -1576,8 +1576,8 @@ export default {
}
::v-deep .baseLayerClass {
filter: grayscale(200%) invert(200%) sepia(50%) hue-rotate(175deg)
brightness(80%) saturate(550%);
// filter: grayscale(200%) invert(200%) sepia(50%) hue-rotate(175deg)
// brightness(80%) saturate(550%);
}
}
}