Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Ceil map dimensions #12116

Merged
merged 1 commit into from
Jun 11, 2018
Merged

Ceil map dimensions #12116

merged 1 commit into from
Jun 11, 2018

Conversation

LukasPaczos
Copy link
Contributor

When computing map's dimensions passed to the core we are accounting for the pixel ratio. These calculations can result in non-integer values which we cast to int and effectively allow for minimum available zoom be low enough for the viewport to span beyond 360 degrees. This PR fixes the beforementioned issue by always rounding the map dimensions up.

@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label Jun 11, 2018
@LukasPaczos LukasPaczos requested a review from tobrun June 11, 2018 13:33
@LukasPaczos LukasPaczos merged commit 0b883fd into master Jun 11, 2018
@LukasPaczos LukasPaczos deleted the lp-ceil-map-size branch June 11, 2018 13:45
@LukasPaczos LukasPaczos added this to the android-v6.2.0 milestone Jun 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants