mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

[Android] Set MarkerViewOptions Rotation as Float-Value

Open Schumi09 opened this issue 10 years ago • 2 comments

Platform: Android Mapbox SDK version: 4.1.0-Snapshot

Expected behavior

Setting the MarkerViews's roation as float via MarkerViewOptions markerViewOptions.rotation(42.42f)

Actual behavior

It takes an integer, however the calculations behind are in float anyway and you could set the rotation as float by applying map.addMarker(markerViewOptions).setRotation(42.42f); I guess this should be consistent.

Schumi09 avatar Jun 05 '16 15:06 Schumi09

This should indeed be float, great catch @Schumi09

tobrun avatar Jun 06 '16 05:06 tobrun

Merged with #5251 onto release-v.4.1.0 branch

tobrun avatar Jun 06 '16 12:06 tobrun