Skip to content

Commit 3e53471

Browse files
authored
Merge pull request #3 from I-best1/main
增加河流
2 parents 0193b96 + 9e3a874 commit 3e53471

1 file changed

Lines changed: 44 additions & 5 deletions

File tree

index.html

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ <h3 style="display:flex;align-items:center;justify-content:space-between">简报
293293

294294
// 支流:兴坪河
295295
const XINGPING_HE = [
296+
[110.5941, 25.1000],
297+
[110.5900, 25.0380],
296298
[110.5800, 24.9700],
297299
[110.5700, 24.9650],
298300
[110.5600, 24.9600],
@@ -301,6 +303,8 @@ <h3 style="display:flex;align-items:center;justify-content:space-between">简报
301303

302304
// 支流:幸福源江
303305
const XINGFUYUAN_JIANG = [
306+
[110.6331, 25.0221],
307+
[110.6189, 25.0129],
304308
[110.6025, 24.9418],
305309
[110.5903, 24.9452],
306310
[110.5786, 24.9501],
@@ -311,13 +315,20 @@ <h3 style="display:flex;align-items:center;justify-content:space-between">简报
311315

312316
// 支流:西山村河
313317
const XISHANCUN_HE = [
314-
[110.5287, 24.9315],
315-
[110.5356, 24.9382],
316-
[110.5412, 24.9457],
317-
[110.5463, 24.9513],
318+
[110.5887, 24.9315],
319+
[110.5856, 24.9382],
320+
[110.5778, 24.9357],
321+
[110.5721, 24.9313],
318322
[110.5501, 24.9559]
319323
];
320-
324+
//支流:遇龙河
325+
const YULONG_HE = [
326+
[110.3000, 24.9320],
327+
[110.3520, 24.8976],
328+
[110.4200, 24.7890],
329+
[110.4678, 24.6542],
330+
[110.4980, 24.5600]
331+
];
321332
let simTimer = null;
322333
let playing = false;
323334
let selectedStation = stations[0];
@@ -542,7 +553,19 @@ <h3 style="display:flex;align-items:center;justify-content:space-between">简报
542553
lineStyle: { color: '#88b7ff', width: 2.5, opacity: 0.9, curveness: 0.1 },
543554
data: (function(){ const arr=[]; for(let i=0;i<XISHANCUN_HE.length-1;i++){ arr.push({coords:[XISHANCUN_HE[i], XISHANCUN_HE[i+1]]}); } return arr })()
544555
}
556+
,
557+
//遇龙河
558+
{
559+
name: '遇龙河',
560+
type: 'lines',
561+
coordinateSystem: 'geo',
562+
zlevel: 6,
563+
effect: { show: true, period: 4.5, trailLength: 0.6, color: '#ff1493', symbol: 'arrow', symbolSize: 6 },
564+
lineStyle: { color: '#fce4ec', width: 2.5, opacity: 0.85, curveness: 0.1 },
565+
data: (function(){ const arr=[]; for(let i=0;i<YULONG_HE.length-1;i++){ arr.push({coords:[YULONG_HE[i], YULOMG_HE[i+1]]}); } return arr })()
566+
}
545567
]
568+
546569
};
547570
// 确保地图容器允许交互
548571
try{ mapChart.getDom().style.pointerEvents = 'auto'; }catch(e){}
@@ -602,6 +625,11 @@ <h3 style="display:flex;align-items:center;justify-content:space-between">简报
602625
effect:{ show:true, period:4.5, trailLength:0.6, color:'#b6d8ff', symbol:'arrow', symbolSize:6 },
603626
lineStyle:{ color:'#88b7ff', width:2.5, opacity:0.9, curveness:0.1 },
604627
data:(function(){ const arr=[]; for(let i=0;i<XISHANCUN_HE.length-1;i++){ arr.push({coords:[XISHANCUN_HE[i], XISHANCUN_HE[i+1]]}); } return arr })()
628+
},
629+
{ name:'遇龙河', type:'lines', coordinateSystem:'geo', zlevel:6,
630+
effect:{ show:true, period:4.5, trailLength:0.6, color:'#ff1493', symbol:'arrow', symbolSize:6 },
631+
lineStyle:{ color:'#fce4ec', width:2.5, opacity:0.85, curveness:0.1 },
632+
data:(function(){ const arr=[]; for(let i=0;i<YULONG_HE.length-1;i++){ arr.push({coords:[YULONG_HE[i], YULONG_HE[i+1]]}); } return arr })()
605633
}
606634
]
607635
};
@@ -789,3 +817,14 @@ <h3 style="display:flex;align-items:center;justify-content:space-between">简报
789817
</script>
790818
</body>
791819
</html>
820+
821+
822+
823+
824+
825+
826+
827+
828+
829+
830+

0 commit comments

Comments
 (0)