This commit is contained in:
zengmingjie 2025-09-22 13:52:59 +08:00
parent 4df9fdf940
commit d8986bd67e
4 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,3 @@
NODE_ENV = 'development' NODE_ENV = 'development'
VUE_APP_API_URL = 'http://114.66.57.139:8090' VUE_APP_API_URL = 'http://110.42.57.178:8090'
VUE_APP_MESSAGE_SDK_DEBUG = true VUE_APP_MESSAGE_SDK_DEBUG = true

View File

@ -29,6 +29,6 @@ window.mapConfig = {
vectorLayer: "vec", //白色底图 vectorLayer: "vec", //白色底图
ciatorLayer: "cia", //默认注记 ciatorLayer: "cia", //默认注记
// 地图地址配置 // 地图地址配置
mapUrl: mapUrl: "http://114.66.59.70:8098/vec/{z}/{x}/{y}.png", // 底图
"http://t{0-7}.tianditu.gov.cn/${layerType}_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=${layerType}&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${tiandituKey}" mapUrl1: "http://114.66.59.70:8098/cia/{z}/{x}/{y}.png" // 注记
}; };

View File

@ -357,9 +357,10 @@ export default {
const match = newVal.some((item) => const match = newVal.some((item) =>
positionID.includes(item.positionId) positionID.includes(item.positionId)
); );
console.log(match, "match"); // console.log(match, "match");
if (match) { if (match) {
newVal.forEach((newItem) => { newVal.forEach((newItem) => {
console.log(newItem.BatchId, "newItem.BatchId");
if ( if (
newItem.drone_lon !== 0 && newItem.drone_lon !== 0 &&
newItem.drone_lat !== 0 && newItem.drone_lat !== 0 &&
@ -673,7 +674,7 @@ export default {
return setInterval(() => { return setInterval(() => {
if (item.currTime > 0) { if (item.currTime > 0) {
item.currTime--; item.currTime--;
console.log(item.currTime, "item.currTime"); // console.log(item.currTime, "item.currTime");
// //
const index = this.drones.findIndex( const index = this.drones.findIndex(
(d) => d.BatchId === item.BatchId (d) => d.BatchId === item.BatchId

View File

@ -329,7 +329,13 @@ export default {
visible: true, visible: true,
name: title, name: title,
source: new XYZ({ source: new XYZ({
url: window.mapConfig.mapUrl, // url: window.mapConfig.mapUrl,
url:
layerType === "vec"
? window.mapConfig.mapUrl
: layerType === "cia"
? window.mapConfig.mapUrl1
: `http://t{0-7}.tianditu.gov.cn/${layerType}_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=${layerType}&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${tiandituKey}`,
tileLoadFunction: filter tileLoadFunction: filter
? (imageTile, src) => { ? (imageTile, src) => {
const img = new Image(); const img = new Image();