静态
enableIf enableHighAccuracy
set to true, and if the device can provide a more accurate location, it will get the best possible results.
Note that this may lead to slower response times or increased power consumption (such as when using GPS).
On the other hand, if set to false, it will get faster response and less power consumption.
The default value is false.
静态
maximum静态
只读
PERMISSION_静态
只读
POSITION_静态
timeout静态
只读
TIMEOUT静态
clear静态
getCallback handler with a unique Position
parameter.
可选
onError: ((err: { Optional. Callback handler with an error message. Error code is one of Geolocation.PERMISSION_DENIED, Geolocation.POSITION_UNAVAILABLE, and Geolocation.TIMEOUT.
静态
watchCallback handler with a unique Position
parameter.
可选
onError: ((err: { Optional. Callback handler with an error message. Error code is one of Geolocation.PERMISSION_DENIED, Geolocation.POSITION_UNAVAILABLE, and Geolocation.TIMEOUT.
En
A class that encapsulates Geolocation-related functionalities can check if the browser supports the Geolocation API by using
Geolocation.supported
.Zh
封装了地理位置相关功能的类,可以通过
Geolocation.supported
查看浏览器是否支持地理位置API。Blueprintable