|
@@ -8,6 +8,7 @@ import {
|
|
|
} from '@/utils/map/ArcgisUtil'
|
|
|
|
|
|
import {GetPjylLinePaths, GetWaterFlightPoints, GetShipRout} from "@/apis/ssky";
|
|
|
+import {setCenter} from "@/utils/map/Common";
|
|
|
|
|
|
|
|
|
export function pjylLine(isShow){
|
|
@@ -28,13 +29,13 @@ export function pjylLine(isShow){
|
|
|
points.push(first)
|
|
|
|
|
|
let params = {
|
|
|
-
|
|
|
+ title: lineData.lineName,
|
|
|
type: 'polygon',
|
|
|
data: points,
|
|
|
edit: false,
|
|
|
temp: false,
|
|
|
clear: false,
|
|
|
- goto: true,
|
|
|
+ goto: false,
|
|
|
attributes: null,
|
|
|
symbol: {
|
|
|
type: "simple-fill",
|
|
@@ -52,13 +53,7 @@ export function pjylLine(isShow){
|
|
|
})
|
|
|
}else{
|
|
|
clearMap({is_draw: false, is_search:true, layers: []})
|
|
|
- setCamera({
|
|
|
- x:2667,
|
|
|
- y:463,
|
|
|
- z:4000,
|
|
|
- heading:100,
|
|
|
- tilt:0
|
|
|
- })
|
|
|
+ setCenter();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -96,13 +91,7 @@ export function onePjylPortLocation(data,isShow){
|
|
|
})
|
|
|
}else{
|
|
|
clearMap({is_draw: false, is_search:true, layers: []})
|
|
|
- setCamera({
|
|
|
- x:2667,
|
|
|
- y:463,
|
|
|
- z:4000,
|
|
|
- heading:100,
|
|
|
- tilt:0
|
|
|
- })
|
|
|
+ setCenter();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -153,13 +142,7 @@ export function oneDjldPortLocation(data,isShow){
|
|
|
})*/
|
|
|
}else{
|
|
|
clearMap({is_draw: false, is_search:true, layers: []})
|
|
|
- setCamera({
|
|
|
- x:2667,
|
|
|
- y:463,
|
|
|
- z:4000,
|
|
|
- heading:100,
|
|
|
- tilt:0
|
|
|
- })
|
|
|
+ setCenter();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -258,13 +241,7 @@ export function djldLine(lineName,isShow){
|
|
|
})
|
|
|
}else{
|
|
|
clearMap({is_draw: false, is_search:true, layers: []})
|
|
|
- setCamera({
|
|
|
- x:2667,
|
|
|
- y:463,
|
|
|
- z:4000,
|
|
|
- heading:100,
|
|
|
- tilt:0
|
|
|
- })
|
|
|
+ setCenter();
|
|
|
}
|
|
|
|
|
|
}
|