【发布时间】:2019-05-30 10:13:02
【问题描述】:
我目前正在研究一个项目,我需要复制一个运动应用程序,例如带有 Ionic 4 - Angular 的 Runastic
为此,我尝试向我的应用程序添加地图(谷歌地图)以及地理定位系统。
对于谷歌地图的集成,我遵循了这个教程: https://ramsatt.com/2019/02/19/ionic-4 - google-map - part-1 - simple-map/
目前它可以工作,但我阻止了教程的这一部分: http://ramsatt.com/2019/05/02/ionic-4 - google-map - part-1 - geo-location/
当我转到我的地图所在的页面时,我遇到了这个错误:
Error: Uncaught (in promise): TypeError: Object(...) is not a function TypeError: Object(...) 不是函数 在 Geolocation.Array.concat.Geolocation.getCurrentPosition (http://localhost:8100/build/0.js:9874:143) 在 GeolocationPage.Array.concat.GeolocationPage.ngAfterViewInit
还有我的系统配置:
离子框架:3.9.5
Ionic 应用脚本:3.2.2
Angular 核心:5.2.11
Angular 编译器 CLI:^7.2.15
节点:10.15.2
感谢您的帮助。
【问题讨论】:
标签: angular object ionic-framework geolocation ionic4