|
@@ -123,10 +123,11 @@ export default {
|
|
|
}
|
|
|
return "";
|
|
|
},
|
|
|
- async draw_vector_server(jscType) {
|
|
|
+ async draw_vector_server(jscType, goitrem) {
|
|
|
let res = await QueryOne({ jscType, id: "4602" });
|
|
|
this.layersData = { ...res.data, title: this.title };
|
|
|
- tdsy.addLayer(this.layersData);
|
|
|
+ if (goitrem) this.go(goitrem);
|
|
|
+ else tdsy.addLayer(this.layersData);
|
|
|
// this.Getlayers(res.data.url);
|
|
|
},
|
|
|
async Getlayers(mapurl) {
|
|
@@ -141,7 +142,7 @@ export default {
|
|
|
if (layersObj[did_v]) {
|
|
|
layersObj[did_v].show = true;
|
|
|
viewer.flyTo(layerSources[did_v], {
|
|
|
- offset: new Cesium.HeadingPitchRange(0, -45, 5000),
|
|
|
+ offset: new Cesium.HeadingPitchRange(0, -45),
|
|
|
});
|
|
|
} else {
|
|
|
tdsy.layer.show = false;
|
|
@@ -168,14 +169,14 @@ export default {
|
|
|
loadGeoJSON(geojson, id) {
|
|
|
let polygon = Cesium.GeoJsonDataSource.load(geojson, {
|
|
|
clampToGround: true,
|
|
|
- stroke: Cesium.Color.WHITE.withAlpha(0),
|
|
|
+ stroke: Cesium.Color.RED.withAlpha(0),
|
|
|
fill: Cesium.Color.WHITE.withAlpha(0),
|
|
|
});
|
|
|
polygon.then(function (dataSource) {
|
|
|
viewer.dataSources.add(dataSource);
|
|
|
layerSources[id] = dataSource;
|
|
|
viewer.flyTo(dataSource, {
|
|
|
- offset: new Cesium.HeadingPitchRange(0, -45, 5000),
|
|
|
+ offset: new Cesium.HeadingPitchRange(0, -45),
|
|
|
});
|
|
|
});
|
|
|
},
|
|
@@ -545,7 +546,7 @@ export default {
|
|
|
this.init_vector();
|
|
|
}
|
|
|
if (newVal.goitem) {
|
|
|
- this.go(newVal.goitem);
|
|
|
+ this.draw_vector_server(newVal.mapType, newVal.goitem);
|
|
|
}
|
|
|
},
|
|
|
active_dableData(newVal, oldVal) {
|