Raruto / leaflet-rotate

Leaflet plugin that allows to add rotation functionality to map tiles
GNU General Public License v3.0
77 stars 21 forks source link

Update Rotate.js and CompassBearing.js #22

Closed heyajohnny closed 1 year ago

heyajohnny commented 1 year ago

List of changes

  1. Removed call to non existing function _unthrottledOnDeviceOrientation.
  2. Higher throttling for smoother rotation on device orientation change.
  3. Add ondeviceorientationabsolute event listener
  4. Preparation for iOS support.
  5. Apply patch from https://github.com/Leaflet/Leaflet/pull/8794

Related to: https://github.com/Raruto/leaflet-rotate/issues/7

Raruto commented 1 year ago

Patch released in v0.2.3 in order to allow others to start testing these changes.

@heyajohnny feel free to open a new pull in case of further improvements.