fix:修改地图
This commit is contained in:
parent
e60fac3dd1
commit
ba9b03f2ef
@ -263,22 +263,22 @@ export default {
|
|||||||
* @return {*}
|
* @return {*}
|
||||||
*/
|
*/
|
||||||
initMap() {
|
initMap() {
|
||||||
// const tianditu_vec_c = new TileLayer({
|
const tianditu_vec_c = new TileLayer({
|
||||||
// className: "baseLayerClass",
|
className: "baseLayerClass",
|
||||||
// title: "矢量底图",
|
title: "矢量底图",
|
||||||
// id: "vec_c",
|
id: "vec_c",
|
||||||
// source: new XYZ({
|
source: new XYZ({
|
||||||
// url: "http://t{0-7}.tianditu.com/DataServer?x={x}&y={y}&l={z}&T=vec_c&tk=1eb44fae5b9dc454442b322e9a41d233",
|
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",
|
// projection: "EPSG:4326",
|
||||||
// }),
|
}),
|
||||||
// visible: true,
|
visible: true,
|
||||||
// });
|
});
|
||||||
const tianditu_cva_c = new TileLayer({
|
const tianditu_cva_c = new TileLayer({
|
||||||
className: "baseLayerClass",
|
className: "baseLayerClass",
|
||||||
title: "矢量地图",
|
title: "矢量地图",
|
||||||
id: "cva_c",
|
id: "cva_c",
|
||||||
source: new XYZ({
|
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",
|
// projection: "EPSG:4326",
|
||||||
}),
|
}),
|
||||||
visible: true,
|
visible: true,
|
||||||
@ -306,7 +306,7 @@ export default {
|
|||||||
minZoom: 7,
|
minZoom: 7,
|
||||||
maxZoom: 18,
|
maxZoom: 18,
|
||||||
}),
|
}),
|
||||||
layers: [tianditu_img_c, tianditu_cva_c],
|
layers: [tianditu_cva_c, tianditu_vec_c, tianditu_img_c],
|
||||||
});
|
});
|
||||||
// 图层点击事件
|
// 图层点击事件
|
||||||
map.on("singleclick", (e) => {
|
map.on("singleclick", (e) => {
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
* @Author: SunTao 328867980@qq.com
|
* @Author: SunTao 328867980@qq.com
|
||||||
* @Date: 2024-10-17 11:34:00
|
* @Date: 2024-10-17 11:34:00
|
||||||
* @LastEditors: SunTao 328867980@qq.com
|
* @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
|
* @FilePath: \znxjxt-ui\src\views\big-screen\index.vue
|
||||||
* @Description: 大屏首页
|
* @Description: 大屏首页
|
||||||
-->
|
-->
|
||||||
@ -1576,8 +1576,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .baseLayerClass {
|
::v-deep .baseLayerClass {
|
||||||
filter: grayscale(200%) invert(200%) sepia(50%) hue-rotate(175deg)
|
// filter: grayscale(200%) invert(200%) sepia(50%) hue-rotate(175deg)
|
||||||
brightness(80%) saturate(550%);
|
// brightness(80%) saturate(550%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user