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
在你的代码中,加入如下代码:
export class WelcomeComponent implements OnInit { constructor() { }
ngOnInit() { const dis = AMap.GeometryUtil.distance([123, 456], [123, 456]); console.log(dis: ${dis}); } }
dis: ${dis}
提示错误:
ReferenceError: AMap is not defined
or 在别的工程中提示错误:
error TS2552: Cannot find name 'AMap'.
The text was updated successfully, but these errors were encountered:
AMap 需要在加载完地图之后使用,(在ngx-amap的naReady事件之后)。 如果缺少类型定义,需要安装 @types/amap-js-api
更新了 README.md,使用说明里的第5点。如果需要使用AMapLoaderService,需要更新到 3.0.1 版本
AMapLoaderService
Sorry, something went wrong.
No branches or pull requests
在你的代码中,加入如下代码:
export class WelcomeComponent implements OnInit {
constructor() { }
ngOnInit() {
const dis = AMap.GeometryUtil.distance([123, 456], [123, 456]);
console.log(
dis: ${dis}
);}
}
提示错误:
ReferenceError: AMap is not defined
or 在别的工程中提示错误:
error TS2552: Cannot find name 'AMap'.
The text was updated successfully, but these errors were encountered: