-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.21.1以上版本,地图设置为无底图模式时,获取经纬度的控件会显示(0,0) #2385
Comments
编译前的代码,四年前写的没有动过 L7/packages/map/src/handler/events/event.ts Lines 4 to 10 in 41ea5dd
L7/packages/map/src/handler/events/map_mouse_event.ts Lines 11 to 65 in 41ea5dd
|
看似无毒无害,简化复现一下 class A {
public arg1: number
constructor(arg1: number, arg2: number) {
this.arg1 = arg1;
this.arg2 = arg2;
}
}
class B extends A {
public arg2: number
public arg3: number
constructor(arg1: number, arg2: number, arg3: number) {
super(arg1, arg2);
this.arg3 = arg3;
}
}
const b = new B(1, 2, 3)
console.log(b) 再简化一下转化为 JS 的 class A {
arg1
constructor(arg1, arg2) {
this.arg1 = arg1;
this.arg2 = arg2;
}
}
class B extends A {
arg2
arg3
constructor(arg1, arg2, arg3) {
super(arg1, arg2);
this.arg3 = arg3;
}
}
const b = new B(1, 2, 3)
console.log(b) 执行结果是什么? |
打包时,使用了 Babel 进行了编译,默认配置编译后的结果 |
给 babel 如果加了 @babel/plugin-transform-typescript 插件,编译后的结果 |
如果使用 typescript 编译 忽略编译错误,执行结果 |
@lvisei 所以老哥最后如何改这个问题。加上pnpm add --save-dev @babel/plugin-transform-typescript ??? |
等今天修复了发个版本 |
|
问题描述
最新版本的经纬度控件在无底图模式下无法正确获取坐标
重现链接
No response
重现步骤
No response
预期行为
我期望看到坐标随鼠标移动正常展示
平台
No response
屏幕截图或视频(可选)
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: