We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
hi @HFY-aa, welcome!
Sorry, something went wrong.
Hi @HFY-aa, Please star this repo if you find it useful! Thanks ⭐! 你好 @HFY-aa。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!
参见 JS API 安全密钥使用
Vue组合式API+TypeScript示例
const scene = shallowRef<Scene>() onMounted(() => { scene.value = new L7.Scene({ id: 'map', map: new GaodeMap({ pitch: 0, zoom: 14, token: '[Key]', // 这 }), }) }) useMapSecurityConfig() declare const window: { _AMapSecurityConfig?: { serviceHost?: string // 代理服务器转发 securityJsCode?: string // 明文方式 } } & Window function useMapSecurityConfig() { window._AMapSecurityConfig = { securityJsCode: '[安全密钥]', // 和这 } as const onScopeDispose(() => delete window._AMapSecurityConfig) }
lzxue
No branches or pull requests
The text was updated successfully, but these errors were encountered: