Syntax error Geolocation HTML5 enableHighAccuracy True, False or What?

Geolocation HTML5 enableHighAccuracy True, False or What?



For Geolocation enableHighAccuracy, you need to set it to true −

enableHighAccuracy: true

If you still fail in getting the result i.e. handling the timeout error, then again try it with

enableHighAccuracy: false

The above would work on Android, Chrome, and Firefox as well.

Updated on: 2020-06-25T07:35:34+05:30

318 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements