|
@@ -411,7 +411,7 @@ export default {
|
|
|
return {
|
|
|
map: null,
|
|
|
shipName: '',
|
|
|
- layersgroup:[{name:"普通船",label:"普通船"}],
|
|
|
+ layersgroup: [{name: "普通船", label: "普通船"}],
|
|
|
deviceShow: false,
|
|
|
deviceData: '',
|
|
|
showvideos: false,
|
|
@@ -443,7 +443,7 @@ export default {
|
|
|
tableData: {minor: [], main: []},
|
|
|
addrlist: [{name: "南京四桥", location: [1, 1]}],
|
|
|
caddr: "南京四桥",
|
|
|
- cselect:[],
|
|
|
+ cselect: [],
|
|
|
shipShow: false,
|
|
|
shipdata: {},
|
|
|
};
|
|
@@ -508,20 +508,18 @@ export default {
|
|
|
// this.addpoint();
|
|
|
// this.addline();
|
|
|
|
|
|
- setTimeout(function(){
|
|
|
+ setTimeout(function () {
|
|
|
// alert(11);
|
|
|
that.closevideo();
|
|
|
|
|
|
- },1000)
|
|
|
+ }, 1000)
|
|
|
|
|
|
window.getmapviewlatlng = function () {
|
|
|
var pps = mapv.getView().calculateExtent(mapv.getSize());
|
|
|
- return( that.transpoints([[pps[0],pps[1]],[pps[2],pps[3]]],1));
|
|
|
+ return (that.transpoints([[pps[0], pps[1]], [pps[2], pps[3]]], 1));
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
methods: {
|
|
|
//[[1111,1111]]
|
|
@@ -567,20 +565,23 @@ export default {
|
|
|
});
|
|
|
|
|
|
},
|
|
|
- clickly:(value)=>{
|
|
|
- if(value.indexOf('普通船')!=-1){
|
|
|
+ clickly: (value) => {
|
|
|
+ if (value.indexOf('普通船') != -1) {
|
|
|
that.$parent.startgetall();
|
|
|
console.log(that.posints)
|
|
|
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
that.$parent.stopgetall();
|
|
|
- for (const key in that.posints) {
|
|
|
- var lays = that.posints[key];
|
|
|
- if(lays== null) continue;
|
|
|
- lays.disposeInternal();
|
|
|
- that.map.removeLayer(lays);
|
|
|
- that.posints[key]=null;
|
|
|
- }
|
|
|
+ for (const key in that.posints) {
|
|
|
+ if (key.indexOf("ship_normal_") == -1) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ var lays = that.posints[key];
|
|
|
+ if (lays == null) continue;
|
|
|
+ lays.disposeInternal();
|
|
|
+ that.map.removeLayer(lays);
|
|
|
+ that.posints[key] = null;
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|
|
@@ -911,7 +912,7 @@ export default {
|
|
|
|
|
|
},
|
|
|
|
|
|
- addpoint: function (addrArry, data, img, type, rotation = 0, zindex = 3,shipl="ship_") {
|
|
|
+ addpoint: function (addrArry, data, img, type, rotation = 0, zindex = 3, shipl = "ship_") {
|
|
|
var lnglat = this.transpoints(addrArry, 0)[0];
|
|
|
var lnglats = null;
|
|
|
|
|
@@ -1111,15 +1112,16 @@ export default {
|
|
|
background-color: white;
|
|
|
padding-right: 4rem;
|
|
|
}
|
|
|
-.layer_div{
|
|
|
+
|
|
|
+.layer_div {
|
|
|
position: absolute;
|
|
|
top: 55rem;
|
|
|
right: 160rem;
|
|
|
padding-top: 4rem;
|
|
|
padding-left: 5rem;
|
|
|
padding-right: 4rem;
|
|
|
- background-color: white;
|
|
|
- padding-bottom: 5rem;
|
|
|
+ background-color: white;
|
|
|
+ padding-bottom: 5rem;
|
|
|
}
|
|
|
|
|
|
.radio_div > div {
|