Skip to content

Commit

Permalink
Respect native scale when adding symbols on iOS (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorczapski authored Dec 23, 2021
1 parent 0c13b66 commit da59aaa
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 @@ -760,7 +760,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 da59aaa

Please sign in to comment.