|
@@ -54,7 +54,9 @@ export function locationBoat(mmsi,isShow){
|
|
|
|
|
|
}else{
|
|
|
if (!showBoat){
|
|
|
- clearMap({is_draw: false, is_search:false, layers: ['boatLayer','boatPathLayer','boatGraphicLayer']})
|
|
|
+ clearMap({is_draw: false, is_search:true, layers: ['boatLayer','boatPathLayer','boatGraphicLayer']})
|
|
|
+ }else{
|
|
|
+ clearMap({is_draw: false, is_search:true, layers: []})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -235,13 +237,13 @@ export function playAreaBoatHistory(type){
|
|
|
/**
|
|
|
* 模拟驾驶
|
|
|
* */
|
|
|
-export function boatDriving(isShow){
|
|
|
+export function boatDriving(data,isShow){
|
|
|
if(isShow){
|
|
|
- openBoatDriving({mapx: 2100,mapy: 220})
|
|
|
+ openBoatDriving(data)
|
|
|
}else{
|
|
|
closeBoatDriving()
|
|
|
- clearMap({is_draw: false, is_search:true, layers: ['boatLayer','boatPathLayer','boatGraphicLayer']})
|
|
|
- setCenter()
|
|
|
+ // clearMap({is_draw: false, is_search:true, layers: ['boatLayer','boatPathLayer','boatGraphicLayer']})
|
|
|
+ // setCenter()
|
|
|
}
|
|
|
}
|
|
|
|