You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently no upper bound on how large the padding can be compared to the MapState.size. This results in an negative number in the actual size used to calculate scaled zoom.
This solution is tested already and resolves the issue. I'll post an PR soon.
The text was updated successfully, but these errors were encountered:
kengu
changed the title
To large fitBounds padding throws Unsupported operation: Infinity or NaN toInt
To0 large fitBounds padding throws Unsupported operation: Infinity or NaN toIntOct 2, 2019
kengu
changed the title
To0 large fitBounds padding throws Unsupported operation: Infinity or NaN toInt
Too large fitBounds padding throws Unsupported operation: Infinity or NaN toIntOct 2, 2019
kengu
added a commit
to DISCOOS/flutter_map
that referenced
this issue
Oct 2, 2019
There is currently no upper bound on how large the padding can be compared to the MapState.size. This results in an negative number in the actual size used to calculate scaled zoom.
When calling MapController.fitBounds this ultimately throws an unexpected
Unsupported operation: Infinity or NaN toInt
in CustomPoint.floor.Proposed resolution
Add lower bound on actual size in method MapState.getBoundsZoom, as proposed on line 219 below:
This solution is tested already and resolves the issue. I'll post an PR soon.
The text was updated successfully, but these errors were encountered: