Browse Source

添加三维二维切换

citygis-lhh 5 months ago
parent
commit
58d4fedacd
2 changed files with 6 additions and 6 deletions
  1. 2 4
      src/utils/chartsOptions.js
  2. 4 2
      src/utils/map/mapOperation.js

+ 2 - 4
src/utils/chartsOptions.js

@@ -115,13 +115,11 @@ export function stackLeftOptions(xAxisData, yAxisData) {
     yAxis: [
       {
         type: 'value',
-        min: 0,
-        interval: 50
+        min: 0
       },
       {
         type: 'value',
-        min: 0,
-        interval: 50
+        min: 0
       }
     ],
     series: [

+ 4 - 2
src/utils/map/mapOperation.js

@@ -272,7 +272,7 @@ export function addTrajectory(data, id) {
 }
 
 //轨迹播放
-export function playTrajectory(id, speed = 60) {
+export function playTrajectory(id, speed = 60, markColor = 'red') {
   invokeParams('ShowData', {
     name: 'car_layer' + id,
     mode: 'player',
@@ -316,7 +316,7 @@ export function playTrajectory(id, speed = 60) {
           symbol: {
             type: 'simple-marker',
             size: 10,
-            color: 'red',
+            color: markColor,
             outline: {
               width: 0.5,
               color: 'white'
@@ -560,3 +560,5 @@ export function change3DTheme(is3D = false) {
     type: is3D ? '3d' : '25d'
   });
 }
+
+//地图切换