leaflet-locatecontrol
leaflet-locatecontrol copied to clipboard
Compass displayed even when needing calibration
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?
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.