openbenches.org
openbenches.org copied to clipboard
Rotate marker on bench view
Some photos have an EXIF tag showing which direction the camera was facing when the photo was taken.
True North https://openbenches.org/image/fc37ce8a6b4811d8f9ac6a6d816aea76b456c97d/exif
'GPSImgDirectionRef' => 'T',
'GPSImgDirection' => '38266/593',
Magnetic North https://openbenches.org/image/37fc2548dcb4e9e67bae12d53d5549c5f1926467/exif
'GPSImgDirectionRef' => 'M',
'GPSImgDirection' => '23607/100',
The direction is found by dividing the two numbers. 38266/593 = 64.5 degrees from North.
Use... https://github.com/bbecquet/Leaflet.RotatedMarker
As per https://github.com/bbecquet/Leaflet.RotatedMarker/issues/18
The plugin is for True North. Should we correct Magnet North ones?