WatchPosition Time Out In Geolocation

我的未来我决定 提交于 2019-12-04 15:35:28

You need to set the maximumAge to 60000. As per the docs, the timeout option indicates the time allowed for obtaining the position. So, this is not what something you are interested. Instead, use the maximumAge. When the maximumAge is set to 60000, for one minute the cached position will be used instead of obtaining a new one.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!