export function warnFilter(e) {
  if (!e.lnglat || e.lnglat.length === 0) {
    console.warn('lnglat：未获取到驶入经纬度');
    return {
      status: 'lnglatfalse',
    };
  } else if (!e.id || e.id === '') {
    console.warn('id：id不能为空');
    return {
      status: 'idfalse',
    };
  } else if (e.img == '' || !e.img) {
    console.warn('img：未获取到车辆img，将使用默认图片');
    e.img = 'https://a.amap.com/jsapi_demos/static/demo-center-v2/car.png';
    return {
      status: 'imgfalse',
      content: e.img,
    };
  } else if (!e.size || e.size.length === 0) {
    console.warn('size:车辆大小为空,将采用默认大小');
    e.size = [10, 10];
    return {
      status: 'sizefalse',
      content: e.size,
    };
  } else {
    return {
      status: 'pass',
    };
  }
}
