使用百度地图底座一直报错,不知道为啥一直未空,我啥也没有写呢 #2216
Unanswered
GiantInaction
asked this question in
Q&A
Replies: 1 comment
-
官网demo 可以调用吗,可以提交 复现demo? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
import { BaiduMap } from '@antv/l7-maps';
import {Scene} from "@antv/l7";
onMounted(()=>{
const scene = new Scene({
id: 'main-container',
map: new BaiduMap({
// 填写百度地图密钥,此为测试token,不可用于生产.这个我填了
token: '111111111',
center: [103, 30],
pitch: 4,
zoom: 10,
rotation: 19,
}),
});
})
chunk-UMTEJINE.js?v=c1df5ec8:62905 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'childNodes')
at BMapService2._callee$ (chunk-UMTEJINE.js?v=c1df5ec8:62905:65)
at tryCatch (chunk-UMTEJINE.js?v=c1df5ec8:4081:21)
at Generator. (chunk-UMTEJINE.js?v=c1df5ec8:4173:22)
at Generator.next (chunk-UMTEJINE.js?v=c1df5ec8:4108:25)
at asyncGeneratorStep (chunk-UMTEJINE.js?v=c1df5ec8:46442:24)
at _next (chunk-UMTEJINE.js?v=c1df5ec8:46460:9)
at chunk-UMTEJINE.js?v=c1df5ec8:46465:7
at new Promise ()
at BMapService2. (chunk-UMTEJINE.js?v=c1df5ec8:46457:12)
at BMapService2.init (chunk-UMTEJINE.js?v=c1df5ec8:62924:22)
Beta Was this translation helpful? Give feedback.
All reactions