Skip to content
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

加载地图 出错误 #1971

Closed
DreamNO1 opened this issue Oct 27, 2023 · 3 comments
Closed

加载地图 出错误 #1971

DreamNO1 opened this issue Oct 27, 2023 · 3 comments
Assignees
Labels

Comments

@DreamNO1
Copy link

问题描述

1.调用方法 const scene = new Scene({
id: 'map',
map: new GaodeMap({
style: 'light',
// center: [120.19382669582967, 30.258134],
zoom: 3,
}),
});
2.引入
import { GaodeMap, Scene } from '@antv/l7';
import { Choropleth } from '@antv/l7plot';

2.出现的错误 error
Uncaught runtime errors:
×
ERROR
Script error.
at handleError (webpack-internal:///./node_modules/webpack-dev-server/client/overlay.js:299:58)
at eval (webpack-internal:///./node_modules/webpack-dev-server/client/overlay.js:318:7)

这是什么情况?

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@DreamNO1
Copy link
Author

Uncaught Error: Invalid Object: LngLat(NaN, NaN)
at new r (maps?callback=___onAPILoaded&v=2.0&key=ff533602d57df6f8ab3b0fea226ae52f&plugin=Map3D:1:93452)
at new c (maps?callback=___onAPILoaded&v=2.0&key=ff533602d57df6f8ab3b0fea226ae52f&plugin=Map3D:1:537670)
at Vt.getData (maps?callback=___onAPILoaded&v=2.0&key=ff533602d57df6f8ab3b0fea226ae52f&plugin=Map3D:1:553122)
at Gi.getData (maps?callback=___onAPILoaded&v=2.0&key=ff533602d57df6f8ab3b0fea226ae52f&plugin=Map3D:1:591869)
at e.renderFrame (eval at nS (maps?callback=___onAPILoaded&v=2.0&key=ff533602d57df6f8ab3b0fea226ae52f&plugin=Map3D:1:191041), :1:420475)
at x.Yf (maps?callback=___onAPILoaded&v=2.0&key=ff533602d57df6f8ab3b0fea226ae52f&plugin=Map3D:1:712843)
at maps?callback=___onAPILoaded&v=2.0&key=ff533602d57df6f8ab3b0fea226ae52f&plugin=Map3D:1:115966

@lzxue
Copy link
Contributor

lzxue commented Oct 27, 2023

地图没设置高度

@DreamNO1
Copy link
Author

好的,感谢已经解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants