GPS定位误差函数
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GPS定位误差函数相关的知识,希望对你有一定的参考价值。
function positionError(err) { var msg; switch(err.code) { case err.UNKNOWN_ERROR: msg = "Unable to find your location"; break; case err.PERMISSION_DENINED: msg = "Permission denied in finding your location"; break; case err.POSITION_UNAVAILABLE: msg = "Your location is currently unknown"; break; case err.BREAK: msg = "Attempt to find location took too long"; break; default: msg = "Location detection not supported in browser"; } }
以上是关于GPS定位误差函数的主要内容,如果未能解决你的问题,请参考以下文章