Skip to content

Comments

Set enableHighAccuracy=true when requesting position#89

Merged
otherdaniel merged 1 commit intoWICG:mainfrom
antosart:enable-high-accuracy
Feb 4, 2026
Merged

Set enableHighAccuracy=true when requesting position#89
otherdaniel merged 1 commit intoWICG:mainfrom
antosart:enable-high-accuracy

Conversation

@antosart
Copy link
Collaborator

@antosart antosart commented Feb 4, 2026

Hardcoding enableHighAccuracy=false can result in a position which has lower precision. Since it is not possible to change that, this means that the element cannot deliver the same position quality of the Geolocation API, which is unfortunate. It seems better to always set enableHighAccuracy=true instead.

@antosart
Copy link
Collaborator Author

antosart commented Feb 4, 2026

@otherdaniel PTAL

Copy link
Collaborator

@otherdaniel otherdaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good!

PS: I apparently inadvertently committed the rendererd .html. I'll delete it again. That said, while it's in there it better be up to date. :)

positionError argument.
1. [=Dispatch onlocation=] to [=this=].
1. Let |positionOptions| be «[]»
1. Let |positionOptions| be a new {{PositionOptions}} with
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi, since {{PositionOptions}} is a dictionary, a more idiomatic way to write this would have been:

«[ "{{PositionOptions/enableHighAccuracy}}" → true ]»

(ref: https://infra.spec.whatwg.org/#maps)

Either way is fine, though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

@antosart antosart force-pushed the enable-high-accuracy branch from 1c13431 to 3fb54b7 Compare February 4, 2026 11:59
@antosart antosart force-pushed the enable-high-accuracy branch from 3fb54b7 to b9c3404 Compare February 4, 2026 12:04
@otherdaniel otherdaniel merged commit 4e2f8a6 into WICG:main Feb 4, 2026
3 checks passed
github-actions bot added a commit that referenced this pull request Feb 4, 2026
SHA: 4e2f8a6
Reason: push, by otherdaniel

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Feb 4, 2026
SHA: 4e2f8a6
Reason: push, by otherdaniel

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to otherdaniel/PEPC that referenced this pull request Feb 4, 2026
SHA: 4e2f8a6
Reason: push, by otherdaniel

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to otherdaniel/PEPC that referenced this pull request Feb 4, 2026
SHA: 4e2f8a6
Reason: push, by otherdaniel

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants