leaflet-locatecontrol icon indicating copy to clipboard operation
leaflet-locatecontrol copied to clipboard

Compass displayed even when needing calibration

Open PaulWalks opened this issue 2 years ago • 1 comments

It seems the compassneedscalibration event is only supported in Edge browser, so the compass always continues to display.

Is there any alternate way of removing the compass if it is currently inaccurate / needing calibration?

PaulWalks avatar Feb 11 '23 08:02 PaulWalks

Could put in a check for webkitCompassAccuracy < 25 (degrees) before displaying compass on Safari. Not sure if there is a solution that can work on uncalibrated / inaccurate Android phones?

It's a safety issue in many circumstances that wrong compass directions can be shown. Any input appreciated.

PaulWalks avatar Feb 11 '23 09:02 PaulWalks