Update: 2026-07-23 00:11:36
This commit is contained in:
@@ -208,10 +208,10 @@ class MapEngineController extends GetxController {
|
||||
|
||||
int? _getImageSize(String id) {
|
||||
if (id == carIcon || id == motoIcon || id == ladyIcon) {
|
||||
// Scale based on pixel ratio so it's not tiny on iOS Retina displays
|
||||
// Scale based on pixel ratio (48dp for standard sleek car markers)
|
||||
double ratio = ui.window.devicePixelRatio;
|
||||
if (ratio == 0) ratio = 3.0; // fallback just in case
|
||||
return (120 * ratio).toInt();
|
||||
return (48 * ratio).toInt();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user