Commit a6e1a1f5 authored by ninglx's avatar ninglx

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

调整 避免三路口与模型展示需求冲突
parent 16e0b671
......@@ -438,22 +438,22 @@ export default {
) {
this.situationTimeVal = msg[0].dateTime;
// zoom 大于 18
if (zoom >= 18) {
if (zoom >= 17) {
this.removeLayers("vehiclePic,vehiclePoint");
}
// zoom 小于 18:隐藏 threebox ;大于17且小于18的部分使用图片图层 其余部分使用圆点
if (zoom < 18) {
if (zoom < 17) {
this.hideTb();
if (zoom > 17) {
this.removeLayers("vehiclePoint");
mapTools.addOrUpdateVehiclePic(map, "vehiclePic", msg);
} else {
// if (zoom > 17) {
// this.removeLayers("vehiclePoint");
// mapTools.addOrUpdateVehiclePic(map, "vehiclePic", msg);
// } else {
this.clearLicense();
this.removeLayers(
"lightLayer,lightLayerText,vehicleSelectWave,license,licenseBack,vehiclePic"
);
mapTools.addOrUpdateVehicle(map, "vehiclePoint", msg);
}
// }
}
let allData = this.diff(this.lastLocation, msg);
for (let item of allData) {
......@@ -469,7 +469,7 @@ export default {
this.clearSelectVehicle();
}
}
if (zoom > 18) {
if (zoom > 17) {
// 新增
if (this.modelsEmpty) {
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