flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Fix bugged ios CGRect parameters and git reference #1321

Closed aardrop closed 1 year ago

aardrop commented 1 year ago

The conversion between the Dart Rect and the Swift CGRect was wrong, causing the CGRect to receive the bottom and left coordinate values where the height and width of the CGRect should be. CGRect constructs the rectangle from the top left corner, and the height and width double, as opposed to the java equivalent that receives the values for all four sides.

See Issue https://github.com/flutter-mapbox-gl/maps/issues/1203 and my previous PR for this https://github.com/flutter-mapbox-gl/maps/pull/1208

Updated the foreign references from @tobrun's old repository to this repository, as they seem to be messing up the pubspec references for git imports. There is an outdated approved PR with these changes that was closed by the bot https://github.com/flutter-mapbox-gl/maps/pull/891.