谷歌地图javascript geolocation api不在移动设备上工作

时间:2022-09-15 15:51:55

I am building a hybrid mobile app using the ionic framework utilizing the google maps javascript api with geolocation. I followed the sample code from their site and the app runs fine when i run on the browser but when i test on my android device, the map loads perfectly but the geolocation does not work at all. Any help/tips?

我正在构建一个混合移动应用程序使用离子框架利用谷歌地图javascript api与地理位置。我跟踪他们网站上的示例代码,当我在浏览器上运行时应用程序运行良好,但是当我在我的Android设备上测试时,地图加载完美但地理位置根本不起作用。任何帮助/提示?

1 个解决方案

#1


0  

i things you used ngCordova Plugins its plugins used for getting current location of device [lat,lng] and its latlng to display in your map.

我使用过的东西ngCordova插件用于获取设备[lat,lng]的当前位置及其latlng以在地图中显示的插件。

thanks and good luck.

谢谢,祝你好运。

#1


0  

i things you used ngCordova Plugins its plugins used for getting current location of device [lat,lng] and its latlng to display in your map.

我使用过的东西ngCordova插件用于获取设备[lat,lng]的当前位置及其latlng以在地图中显示的插件。

thanks and good luck.

谢谢,祝你好运。