🐛 [BUG]utils/common里面的getLngLat 方法获取经纬度属性访问问题
siluozhang516 opened this issue · comments
/**
- 磨平L7 Scene 鼠标事件返回的经纬度差异
- @param e
*/
export const getLngLat = (e: ISceneMouseEvent | ILayerMouseEvent) => {
// @ts-ignore
return e.lngLat || e.lnglat;
};
可修改成 return e.lngLat || e.lnglat || e.latlng; 在leaflet中不会报错