Commit a6e1a1f5 authored by ninglx's avatar ninglx

wj-data-vision默认视角及展示模型zoom

调整 避免三路口与模型展示需求冲突
parent 16e0b671
...@@ -438,22 +438,22 @@ export default { ...@@ -438,22 +438,22 @@ export default {
) { ) {
this.situationTimeVal = msg[0].dateTime; this.situationTimeVal = msg[0].dateTime;
// zoom 大于 18 // zoom 大于 18
if (zoom >= 18) { if (zoom >= 17) {
this.removeLayers("vehiclePic,vehiclePoint"); this.removeLayers("vehiclePic,vehiclePoint");
} }
// zoom 小于 18:隐藏 threebox ;大于17且小于18的部分使用图片图层 其余部分使用圆点 // zoom 小于 18:隐藏 threebox ;大于17且小于18的部分使用图片图层 其余部分使用圆点
if (zoom < 18) { if (zoom < 17) {
this.hideTb(); this.hideTb();
if (zoom > 17) { // if (zoom > 17) {
this.removeLayers("vehiclePoint"); // this.removeLayers("vehiclePoint");
mapTools.addOrUpdateVehiclePic(map, "vehiclePic", msg); // mapTools.addOrUpdateVehiclePic(map, "vehiclePic", msg);
} else { // } else {
this.clearLicense(); this.clearLicense();
this.removeLayers( this.removeLayers(
"lightLayer,lightLayerText,vehicleSelectWave,license,licenseBack,vehiclePic" "lightLayer,lightLayerText,vehicleSelectWave,license,licenseBack,vehiclePic"
); );
mapTools.addOrUpdateVehicle(map, "vehiclePoint", msg); mapTools.addOrUpdateVehicle(map, "vehiclePoint", msg);
} // }
} }
let allData = this.diff(this.lastLocation, msg); let allData = this.diff(this.lastLocation, msg);
for (let item of allData) { for (let item of allData) {
...@@ -469,7 +469,7 @@ export default { ...@@ -469,7 +469,7 @@ export default {
this.clearSelectVehicle(); this.clearSelectVehicle();
} }
} }
if (zoom > 18) { if (zoom > 17) {
// 新增 // 新增
if (this.modelsEmpty) { if (this.modelsEmpty) {
item.dill = "add"; item.dill = "add";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment