This commit is contained in:
liqi 2025-04-09 21:40:14 +08:00
parent 90ad89cf1f
commit 60909c08d5
4 changed files with 83 additions and 123 deletions

View File

@ -59,42 +59,19 @@
"basemaps": [
{
"id": 2021,
"pid": 10,
"name": "天地图影像",
"icon": "https://data.mars3d.cn/img/thumbnail/basemap/tdt_img.png",
"type": "group",
"layers": [
{
"name": "底图",
"type": "tdt",
"layer": "img_d"
},
{
"name": "注记",
"type": "tdt",
"layer": "img_z"
}
],
"name": "三维影像",
"type": "xyz",
"_comment": "更改url地图地址'crs': 'EPSG:4490'是投影坐标系",
"url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
"show": true
},
{
"id": 2022,
"pid": 10,
"name": "天地图电子",
"icon": "https://data.mars3d.cn/img/thumbnail/basemap/tdt_vec.png",
"type": "group",
"layers": [
{
"name": "底图",
"type": "tdt",
"layer": "vec_d"
},
{
"name": "注记",
"type": "tdt",
"layer": "vec_z"
}
],
"name": "二维影像",
"type": "gaode",
"_comment": "更改url地图地址'crs': 'EPSG:4490'是投影坐标系",
"url": "/img/basemaps/gaode_vec.png",
"layer": "vec",
"show": false
}
],

View File

@ -63,22 +63,10 @@
"basemaps": [
{
"id": 2021,
"pid": 10,
"name": "天地图影像",
"icon": "https://data.mars3d.cn/img/thumbnail/basemap/tdt_img.png",
"type": "group",
"layers": [
{
"name": "底图",
"type": "tdt",
"layer": "img_d"
},
{
"name": "注记",
"type": "tdt",
"layer": "img_z"
}
],
"name": "三维影像",
"type": "xyz",
"_comment": "更改url地图地址'crs': 'EPSG:4490'是投影坐标系",
"url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
"show": true
}
],

View File

@ -59,10 +59,11 @@
},
"basemaps": [
{
"id": "",
"name": "天地图影像",
"id": 2021,
"name": "三维影像",
"type": "xyz",
"url": "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
"_comment": "更改url地图地址'crs': 'EPSG:4490'是投影坐标系",
"url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
"show": true
}
],

View File

@ -82,7 +82,6 @@ export function allDevices(options, type, show) {
}
if (type === "all") {
options.forEach((item, index) => {
console.log(item, "item");
if (item.devices.length !== 0) {
item.devices.forEach((deviceItem, index) => {
let graphic = graphicLayer.getGraphicById(deviceItem.id);
@ -119,7 +118,6 @@ export function allDevices(options, type, show) {
});
} else {
options.devices.forEach((item, index) => {
console.log(options, "item");
// const image = getImageSrc(item.deviceType.type);
let graphic = graphicLayer.getGraphicById(item.id);
if (!graphic) {
@ -154,7 +152,6 @@ import imgUav from "@/assets/img/uavimg.png";
//设备广告牌
function bindLayerPopup(graphicLayer, graphic) {
let attr = graphic.attr;
console.log(attr, graphic, "attr");
if (graphic.name === "无人机") {
graphic.bindPopup(
` <div class="mians" style="height: 410px;">
@ -222,7 +219,6 @@ function bindLayerPopup(graphicLayer, graphic) {
});
} else if (graphic.name === "飞手") {
} else {
console.log(attr, "attr");
let wPath = window.document.location.href;
let pathName = route.path;
let pos = wPath.indexOf(pathName);
@ -381,7 +377,6 @@ export function mapUavFiex(options) {
let graphicDevice = window.marsMap.getLayerById("devLog");
if (graphicDevice) {
let deviceGraphic = graphicDevice.getGraphicById(item.DeviceId);
console.log(deviceGraphic, "deviceGraphic");
if (deviceGraphic !== undefined) {
deviceGraphic.setOptions({
style: {
@ -404,7 +399,6 @@ export function mapUavFiex(options) {
);
car.addDynamicPosition(point, 0);
} else if (item.BatchId + "_app" === car.id) {
console.log(item.app_lon, item.app_lat, "item");
// eslint-disable-next-line no-undef
const point = new mars3d.LngLatPoint(item.app_lon, item.app_lat, 0);
car.addDynamicPosition(point, 0);