fix::调整地图api,设置线段打点层级修改

This commit is contained in:
2024-11-07 09:30:17 +08:00
parent 2e7e66f13a
commit 1d9f6d2b72
4 changed files with 72 additions and 150 deletions
+16 -16
View File
@@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-10-14 10:46:23
* @LastEditors: SunTao 328867980@qq.com
* @LastEditTime: 2024-11-05 10:46:24
* @LastEditTime: 2024-11-06 16:42:42
* @FilePath: \znxjxt-ui\src\views\xj\inspection\task-management\components\fssm-map.vue
* @Description: 公共地图
-->
@@ -168,23 +168,23 @@ export default {
methods: {
/* 初始化openlayer地图 */
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://t{0-7}.tianditu.com/DataServer?x={x}&y={y}&l={z}&T=vec_c&tk=1eb44fae5b9dc454442b322e9a41d233",
// projection: "EPSG:4326",
// }),
// visible: true,
// });
const tianditu_cva_c = new TileLayer({
className: "baseLayerClass",
title: "矢量地图",
id: "cva_c",
source: new XYZ({
url: "http://t{0-7}.tianditu.com/DataServer?x={x}&y={y}&l={z}&T=cva_c&tk=1eb44fae5b9dc454442b322e9a41d233",
projection: "EPSG:4326",
url: "https://webrd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",
// projection: "EPSG:4326",
}),
visible: true,
});
@@ -192,8 +192,8 @@ export default {
title: "影像地图",
id: "img_c",
source: new XYZ({
url: "http://t{0-7}.tianditu.com/DataServer?x={x}&y={y}&l={z}&T=img_c&tk=1eb44fae5b9dc454442b322e9a41d233",
projection: "EPSG:4326",
url: "https://webst01.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",
// projection: "EPSG:4326",
}),
visible: false,
});
@@ -211,7 +211,7 @@ export default {
minZoom: 7,
maxZoom: 18,
}),
layers: [tianditu_vec_c, tianditu_img_c, tianditu_cva_c],
layers: [ tianditu_img_c, tianditu_cva_c],
});
// 图层点击事件
map.on("singleclick", (e) => {