mapbox-gl-js
mapbox-gl-js copied to clipboard
Map#setBearing handles some floats and integers incorrectly
mapbox-gl-js version: 0.52.0
browser: Chrome 71.0.3578.98 (Official Build) (64-bit)
Steps to Trigger Behavior
- Make sure the map's bearing is set to an integer value
- Set the bearing to a small float value
- Read the bearing ‒ it's not the right value
Link to Demonstration
https://jsbin.com/harefagilu/edit?html,console
Expected Behavior
Bearing should equal 0.1
.
Actual Behavior
Bearing equals 0.10000000000002274
.