Skip to content

Commit

Permalink
cherry-pick upstream#835
Browse files Browse the repository at this point in the history
https: //github.com/flutter-mapbox-gl/maps/pull/835
Co-Authored-By: igorczapski <6745789+igorczapski@users.noreply.github.com>
  • Loading branch information
m0nac0 and igorczapski committed May 22, 2022
1 parent 5d61d34 commit cf445b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/MapboxMapController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ class MapboxMapController: NSObject, FlutterPlatformView, MGLMapViewDelegate, Ma
guard let bytes = arguments["bytes"] as? FlutterStandardTypedData else { return }
guard let sdf = arguments["sdf"] as? Bool else { return }
guard let data = bytes.data as? Data else { return }
guard let image = UIImage(data: data) else { return }
guard let image = UIImage(data: data, scale: UIScreen.main.scale) else { return }
if sdf {
mapView.style?.setImage(image.withRenderingMode(.alwaysTemplate), forName: name)
} else {
Expand Down

0 comments on commit cf445b4

Please sign in to comment.